A structure or portion of a structure declared unsafe by any official charged with protecting public safety may be restored to a safe condition, provided such construction costs do not exceed 50 percent of the replacement cost of such structure. The burden of proof as to cost ratio shall be the responsibility of the owner.