check for undefined page.