public function get(string $key)
    {
        if (!$this->has($key)) {
            throw new \InvalidArgumentException('Key "' . $key . '" does not exist.');
        }
        return $this->data[$key];
    }