Error checking for when there are no entries