public function hasNotEmptyAggregation(string $name): bool
    {
        return
            !is_null($this->getAggregation($name)) &&
            !$this
                ->getAggregation($name)
                ->isEmpty();
    }
public function hasNotEmptyAggregation(string $name): bool
    {
        return
            !is_null($this->getAggregation($name)) &&
            !$this
                ->getAggregation($name)
                ->isEmpty();
    }
public function hasNotEmptyAggregation ( string $ name ) : bool { return ! is_null ( $ this -> getAggregation ( $ name ) ) && ! $ this -> getAggregation ( $ name ) -> isEmpty ( ) ; }
Return if the needed aggregation exists and if is not empty.

@param string $name

@return bool
Return if the needed aggregation exists and if is not empty .