Twig/Extension/CoreExtension.php
public function isRender($name) 
    {
        if(in_array($name,$this->cacheRendered)){
            return true;
        }
        $this->cacheRendered[] = $name;
        return false;
    }
public function isRender($name) 
    {
        if(in_array($name,$this->cacheRendered)){
            return true;
        }
        $this->cacheRendered[] = $name;
        return false;
    }
}