nil checks for time ranges