protected function renderIteration($i, $from, $to, $step, $iterationArgument)
{
if (false === empty($iterationArgument)) {
$cycle = intval(($i - $from) / $step) + 1;
$iteration = ['index' => $i, 'cycle' => $cycle, 'isOdd' => 0 === $cycle % 2 ? false : true, 'isEven' => 0 === $cycle % 2 ? true : false, 'isFirst' => $i === $from ? true : false, 'isLast' => $this->isLast($i, $from, $to, $step)];
$this->templateVariableContainer->add($iterationArgument, $iteration);
$content = $this->renderChildren();
$this->templateVariableContainer->remove($iterationArgument);
} else {
$content = $this->renderChildren();
}
return $content;
}