Show pagination only if there are results