Added hasData method to the Page class