A city of the second class shall have the power (1) to regulate, license, tax, and suppress places of amusement, (2) to revoke the licenses of such places when they are not provided with sufficient and ample means of exit and entrance or when the licensee has been convicted of any violation of the ordinances in relation to such places, and (3) to declare from time to time when such place or places are unsafe for such uses.