WordPress is_tree function to see if a page is an ancestor.