public function popAggregator() { if (!$this->aggregators) { throw new LogicException('You tried to pop from an empty Aggregator stack.'); } return array_shift($this->aggregators); }