check if hours field is not empty before accessing