protected function filter_last() { if ($this->parent === null) { return false; } else { return $this->parent->childCount(true) - 1 === $this->index(false); } }