public static function helper(&$context, $vars, $checkSubexp = false) {
        if (static::resolveHelper($context, $vars)) {
            $context['usedFeature']['helper']++;
            return true;
        }

        if ($checkSubexp) {
            switch ($vars[0][0]) {
                case 'if':
                case 'unless':
                case 'with':
                case 'each':
                case 'lookup':
                    return $context['flags']['nohbh'] ? false : true;
            }
        }

        return false;
    }
public static function helper(&$context, $vars, $checkSubexp = false) {
        if (static::resolveHelper($context, $vars)) {
            $context['usedFeature']['helper']++;
            return true;
        }

        if ($checkSubexp) {
            switch ($vars[0][0]) {
                case 'if':
                case 'unless':
                case 'with':
                case 'each':
                case 'lookup':
                    return $context['flags']['nohbh'] ? false : true;
            }
        }

        return false;
    }
public static function helper ( & $ context , $ vars , $ checkSubexp = false ) { if ( static :: resolveHelper ( $ context , $ vars ) ) { $ context [ 'usedFeature' ] [ 'helper' ] ++ ; return true ; } if ( $ checkSubexp ) { switch ( $ vars [ 0 ] [ 0 ] ) { case 'if' : case 'unless' : case 'with' : case 'each' : case 'lookup' : return $ context [ 'flags' ] [ 'nohbh' ] ? false : true ; } } return false ; }
Return true when the name is listed in helper table

@param array<string,array|string|integer> $context current compile context
@param array<boolean|integer|string|array> $vars parsed arguments list
@param boolean $checkSubexp true when check for subexpression

@return boolean Return true when it is custom helper
Return true when the name is listed in helper table