Upon filing of any proceeding referred to in § 903 and during its pendency before the Zoning Hearing Board, all land development pursuant to any challenged ordinance, order or approval of the Zoning Officer or of any agency or body, and all official action thereunder shall be stayed unless the Zoning Hearing Board facts indicate that such stay would cause imminent peril to life or property. In such case the development or official action shall not be stayed otherwise than by a restraining order, which may be granted by the Zoning Hearing Board or by the court having jurisdiction of zoning appeals on petition after notice to the Zoning Officer or other appropriate agency or body. When an application for development, preliminary or final, has been duly approved and proceedings designed to reverse or limit the approval are filed with the Zoning Hearing Board by persons other than the applicant, the applicant may petition the court having jurisdiction of zoning appeals to order such persons to post bond as a condition to continuing the proceedings before the Zoning Hearing Board. After the petition is presented, the court shall hold a hearing to determine if the filing of the appeal is frivolous. At the hearing, evidence may be presented on the merits of the case. It shall be the burden of the applicant for a bond to prove the appeal is frivolous. After consideration of all evidence presented, if the court determines that the appeal is frivolous, it shall grant the petition for a bond from an order of the court dismissing a zoning appeal for refusal to post a bond and the appellate court sustains the order of the court below to post a bond, the respondent to the petition for a bond, upon motion of the petitioner and after hearing in the court having jurisdiction of zoning appeals, shall be liable for all reasonable costs, expenses, and attorney fees incurred by the petitioner.