check whether a page already exists when adding one