(a) Orders. After such notice and hearing, if the magistrate court determines that the dwelling, building, or structure under consideration is unfit for human habitation or is unfit for its current commercial, industrial, or business use, it shall state in writing its findings of fact in support of such determination and shall issue and cause to be served upon the owner thereof an order requiring one of the following: (1) If the repair, alteration, or improvement of the dwelling, building, or structure can be made at a reasonable cost in relation to the value of the dwelling, building, or structure, requiring the owner or parties in interest, within the time specified in the order, to repair, alter, or improve such dwelling, building, or structure so as to render it fit for human habitation or for current commercial, industrial, or business use it shall be done. Otherwise, the dwelling, building or structure shall be vacated and closed as a human habitation. (2) If the repair, alteration, or improvement of the dwelling, building, or structure cannot be made at a reasonable cost in relation to the value of the dwelling, building, or structure, the order shall require the owner or parties in interest, within the time specified in the order, to remove or demolish such dwelling, building, or structure. (b) Removal or demolition not required; exception. In no event shall the magistrate court require removal or demolition of any dwelling, building, or structure except upon a finding that the cost of repair, alteration, or improvement thereof exceeds one-half the value of such dwelling, building, or structure when repaired to satisfy the minimum requirements of this law.