Fix bug where has_coordinates not returning boolean