public function value(callable $callback, $value, $key = null): void
    {
        $input = $this->resolve($value);

        if (!$input->isValid()) {
            return;
        }

        call_user_func($callback, $input->value(), $key);
    }