protected function isLastPage(PHUIFormPageView $page) { return $this->getPageIndex($page->getKey()) === count($this->pages) - 1; }