public function hasChildren() { if (abs($this->getRightKey() - $this->getLeftKey()) > 1) { return true; } }