$page->isDescendantOfActive()

Checks if the page is a descendant of the currently active page.