Any petition presented to the city council of the city under or pursuant to the provisions of subsection (a) of section 3, and if filed as hereinbefore provided shall be deemed to be valid unless, within seven days after the filing of such petition, a petition is presented to the court of common pleas of the proper county by not less than one hundred registered electors of the city, specifically setting forth the objections thereto and praying that the said petition be set aside. A copy of said petition presented to the court of common pleas shall, within said period, be served on the clerk of the city council of the city. Upon the presentation of such a petition, the court shall make an order fixing the time for hearing, which shall not be later than ten days after the presentation of the petition to the court, and specifying the time and manner of notice, by public advertising or otherwise, that shall be given of such hearing. On the day fixed for said hearing, the court shall proceed, without delay, to hear said objections and shall give such hearing precedence over any other business before it, and shall finally determine said matter not later than fifteen days after the last day for presentation of such petition to the court. If the court shall find that such petition is defective under the provisions of section 8 of this act, or does not contain a sufficient number of genuine signatures of registered electors entitled to sign the same under the provisions of this act, it shall be set aside. If the objections relate to material errors or defects apparent on the face of the petition or on the face of the accompanying or appended affidavits, the court after hearing may, in its discretion, permit amendments within such time and upon such terms as to payment of costs as the said court may specify. In case any such petition is dismissed, the court shall make such order as to the payment of the costs of the proceeding, including witness fees, as it shall deem just.
53 P.S. § 13209