(a) The fire official can cause to be inspected all buildings and premises for ascertaining and causing to be corrected any conditions which reasonably tend to cause fire or contribute to its spread. (b) All buildings or structures which are structurally unsafe or not provided with adequate egress, or which constitute a fire hazard, or are otherwise dangerous to human life, or which in relation to existing use constitute a hazard to safety or health, or public welfare, by reason of inadequate maintenance, dilapidation, obsolescence, fire, hazard, disaster damage or abandonment, are all declared unsafe and a public nuisance and shall be abated by repair, rehabilitation, demolition or removal.