hasAggregations() public method

Returns whether aggregations exist.
public hasAggregations ( ) : boolean
return boolean Aggregation existence
 /**
  * @param ResultSet $result
  * @return bool
  */
 protected function collectAggregations(ResultSet $result)
 {
     if (!$result->hasAggregations()) {
         return false;
     }
     $this->aggregations = $result->getAggregations();
     return true;
 }