public static function resolveHelper(&$context, &$vars) {
        if (count($vars[0]) !== 1) {
            return false;
        }
        if (isset($context['helpers'][$vars[0][0]])) {
            return true;
        }

        if ($context['helperresolver']) {
            $helper = $context['helperresolver']($context, $vars[0][0]);
            if ($helper) {
                $context['helpers'][$vars[0][0]] = $helper;
                return true;
            }
        }

        return false;
    }
public static function resolveHelper(&$context, &$vars) {
        if (count($vars[0]) !== 1) {
            return false;
        }
        if (isset($context['helpers'][$vars[0][0]])) {
            return true;
        }

        if ($context['helperresolver']) {
            $helper = $context['helperresolver']($context, $vars[0][0]);
            if ($helper) {
                $context['helpers'][$vars[0][0]] = $helper;
                return true;
            }
        }

        return false;
    }
public static function resolveHelper ( & $ context , & $ vars ) { if ( count ( $ vars [ 0 ] ) !== 1 ) { return false ; } if ( isset ( $ context [ 'helpers' ] [ $ vars [ 0 ] [ 0 ] ] ) ) { return true ; } if ( $ context [ 'helperresolver' ] ) { $ helper = $ context [ 'helperresolver' ] ( $ context , $ vars [ 0 ] [ 0 ] ) ; if ( $ helper ) { $ context [ 'helpers' ] [ $ vars [ 0 ] [ 0 ] ] = $ helper ; return true ; } } return false ; }
use helperresolver to resolve helper, return true when helper founded

@param array<string,array|string|integer> $context Current context of compiler progress.
@param array<boolean|integer|string|array> $vars parsed arguments list

@return boolean $found helper exists or not
use helperresolver to resolve helper return true when helper founded