public function get($key, $default = null) { if ($this->has($key)) { return $this->offsetGet($key); } return $default; }