Add method to check that a page is already open

This adds a method that verifies the current page, so that we can be sure it's open (perhaps as the result of some redirect).