You could use ```if 'longitude' in coord_x.name()```