Ensure that has_data returns a boolean