Checks if the current page is visible or not