checking the page exists