avoid querying for hours when there are no shifts involved.