Prevent trying to use an empty data set.