public function set(string $name, $value, bool $current = false): void
    {
        if ($current) {
            $this->curr->offsetSet($name, $value);
        }
        $this->next->offsetSet($name, $value);
    }