public function run($function)
    {
        $canEcho = ['stop', 'append', 'replace', 'section', 'block', 'endblock'];
        if (in_array($function, $canEcho, true)) {
            return call_user_func_array([$this, 'doRun'], func_get_args());
        }

        return call_user_func_array([$this, 'doRunIsolated'], func_get_args());
    }