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;
    }
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;
    }
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 ; }
Check if the tag is a non existent optional require asset.

@param RequireTagInterface $tag The require template tag

@return bool
Check if the tag is a non existent optional require asset .