public function set($key, $value, $subKey = null)
    {
        if (!is_null($subKey) && (is_array($this->data[$key]))) {
            $this->data[$key][$subKey] = $value;
        } else {
            $this->data[$key] = $value;
        }
    }