src/folder/Item.php
public function hasChild()
    {
        return ((new \luya\admin\folder\Query())->where(['is_deleted' => 0, 'parent_id' => $this->getId()])->count() > 0 ? true: false);
    }
public function hasChild()
    {
        return ((new \luya\admin\folder\Query())->where(['is_deleted' => 0, 'parent_id' => $this->getId()])->count() > 0 ? true: false);
    }
public function hasChild ( ) { return ( ( new \ luya \ admin \ folder \ Query ( ) ) -> where ( [ 'is_deleted' => 0 , 'parent_id' => $ this -> getId ( ) ] ) -> count ( ) > 0 ? true : false ) ; }
Whether the current folder has at least one child folder.

@return boolean Whether a child folder exists or not.
Whether the current folder has at least one child folder .