prevented infinite scroll from trying to load data when no data is available