basic id checking for pages, pagetypes