using asPage() method to check to see if page is a draft.