public function get($key, $defaultValue = null) { if (!isset($this->keyToIndexMap[$key]) && 2 === func_num_args()) { return $defaultValue; } return $this->value($key); }