(4)Conditions may be imposed on diversion in order to secure the health, safety and convenience, and in the case of land which is to be used as building sites, in order to secure in addition that the dimensions, arrangement and accessibility of the sites are adequate for the health and convenience of occupiers or are suitable to the locality and do not contravene the provisions of any law relating to town and country planning or the erection of buildings.