Updated condition for get_object_by_coordinates method.