public function isLeaf() { $owner = $this->getOwner(); return $owner->{$this->rightAttribute} - $owner->{$this->leftAttribute} === 1; }