protected function isNonExistentOptionalTag(RequireTagInterface $tag)
    {
        if (!$this->manager->has($tag->getPath(), $tag->getType())) {
            if ($tag->isOptional()) {
                return true;
            }

            throw new RequireTagRendererException($tag, sprintf('The %s %s "%s" is not managed by the Webpack Require Asset Manager', $tag->getCategory(), $tag->getType(), $tag->getPath()));
        }

        return false;
    }