checks if city is defined