Based upon the testimony presented at the hearing or hearings, the Borough Council or the Zoning Hearing Board, as the case may be, shall determine whether the challenged ordinance or map is defective, as alleged by the landowner. If a challenge heard by the Borough Council is found to have merit, the Borough Council shall proceed as provided in Section 609.1 of the Municipalities Planning Code, Act 170. If a challenge heard by the Zoning Hearing Board is found to have merit, the decision of the Zoning Hearing Board shall include recommended amendments to the challenged ordinance which will cure the defects found. In reaching its decision, the Zoning Hearing Board shall consider the amendments, plans, and explanatory material submitted by the landowner and shall also consider:
(a) The impact of the proposal upon roads, sewer facilities, water supplies, schools and other public service facilities;
(b) If the proposal is for a residential use, the impact of the proposal upon regional housing needs and the effectiveness of the proposal in providing housing units of a type actually available to and affordable by classes of persons otherwise unlawfully excluded by the challenged provisions of the ordinance or map;
(c) The suitability of the site for the intensity of use proposed by the site's soils, slopes, woodlands, wetlands, floodplains, and other natural features;
(d) The impact of the proposed use on the site's soils, slopes, woodlands, wetlands, floodplains, and natural features, the degree to which these are protected or destroyed, the tolerance of the resources to development and any adverse environmental impacts; and
(e) The impact of the proposal on the preservation of agriculture and other land uses which are essential to public health and welfare.