move the range test into has_data_for_year