No person shall be eligible to apply for examination unless he is more than twenty-one years old at the date of the application and has been a resident of the municipality for at least one year immediately preceding his application, unless no resident applicants are available.
53 P.S. § 53315