now it checks if pagination is required