Remove pagination if there is nothing to be paginated