private function addToArray($key, $value) { $this->check($key, []); $this->counts[$key][] = $value; }