public function hasChildren(): bool
    {
        $children = (($this->getRgt() - $this->getLft()) - 1) / 2;
        return (0 === $children) ? false : true;
    }
public function hasChildren(): bool
    {
        $children = (($this->getRgt() - $this->getLft()) - 1) / 2;
        return (0 === $children) ? false : true;
    }
public function hasChildren ( ) : bool { $ children = ( ( $ this -> getRgt ( ) - $ this -> getLft ( ) ) - 1 ) / 2 ; return ( 0 === $ children ) ? false : true ; }
returns true if there are children

@return bool
returns true if there are children