$page->isDescendantOf($parent)

Checks if the page is a descendant of the given page.