add the checks again.

removing these checks breaks when there is no data for any interval