private function getData($key) { if (!isset($this->data[$key]) || !is_array($this->data[$key])) { return []; } return $this->data[$key]; }