protected function hasNodeParser(string $class): bool
    {
        if (Validator::key($class, Validator::instance(NodeParserInterface::class))
            ->validate($this->nodeParsers)) {
            return true;
        }
        return false;
    }
protected function hasNodeParser(string $class): bool
    {
        if (Validator::key($class, Validator::instance(NodeParserInterface::class))
            ->validate($this->nodeParsers)) {
            return true;
        }
        return false;
    }
protected function hasNodeParser ( string $ class ) : bool { if ( Validator :: key ( $ class , Validator :: instance ( NodeParserInterface :: class ) ) -> validate ( $ this -> nodeParsers ) ) { return true ; } return false ; }
Check if this node parser instance has a node parser.

@param string $class The node parser for this class.

@return bool True if the node parser exists.
Check if this node parser instance has a node parser .