And this one to:

`$data[$rootNode][$alias] = iterator_to_array($this->viewVars[$key])`

You can remove the helper method