public function beforeTraverse(array $nodes) { $this->loopStacks = new \SplStack(); $this->loopStacks->push(new \SplStack()); }