public function set($key, $value)
    {
        if ($this->has($key)) {
            $old = $this->storage[$key];

            $this->storage[$key] = $value;

            return $old;
        }

        $this->storage[$key] = $value;

        return null;
    }