$page->isChildOf($parent)

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