When a vacancy occurs in the office of constable, regardless of the reason for the vacancy, the court of common pleas of the county of the vacancy, upon petition of not less than ten qualified electors residing in the borough, city, ward or township of the vacancy, shall appoint a suitable person, who, upon being qualified as required by law, shall serve as the constable for the unexpired term of the vacancy.
44 Pa.C.S. § 7121