protected function GetMaxValue() { if (is_array($this->values[0])) { return max($this->values[0]); } return max($this->values); }