The owners of the ranges shall not be subject to any action for nuisance, and no court in this Commonwealth shall enjoin the use or operation of the ranges on the basis of noise or noise pollution, provided that the owners of the ranges are in compliance with any applicable noise control laws or ordinances extant at the time construction of the range was initiated. If there were no noise control laws or ordinances extant at the time construction of the range was initiated, then the immunity granted by this act shall apply to said ranges.
35 P.S. § 4502