Check if city or district exists before trying to add it again