protected function _maxValue($metric) { return array_reduce($this->_collapsed, function ($result, $item) use($metric) { if ($item[$metric] > $result) { return $item[$metric]; } return $result; }, 0); }