protected function call(Container $container, $id, ...$args)
    {
        $ret = $container->resolve($id);

        if (is_array($ret) && $ret[0] instanceof \Closure && is_bool($ret[1])) {
            return ($ret[1]) ? $ret[0]($container, ...$args) : $ret[0](...$args);
        }

        return null;
    }