checking if Page class exists (for backwards compatibility)