Added to function to actually check if the page exists.