Account for the case when there are no pages