(1)The Chief Officer of a Municipality may, if he thinks fit, by written notice, require the owner or occupier of any land in the municipal area on which trees, shrubs or hedges are growing to keep the same in a trim condition, and remove any such tree, shrub or hedges, if it poses a danger to public safety or overhangs or obstructs any street causing inconvenience or danger to the passers-by.