verify that all pages actually exist before testing next/previous.