public function render(Response $response): void
    {
        $i = 0;
        foreach ($response->getViewHelpers() as $name => $view_helper) {
            if (is_a($view_helper, ViewHelperInterface::class)) {
                /** @var $view_helper ViewHelperInterface */
                if (null !== $view_helper->getParent() && !is_null($response->getViewHelper($view_helper->getParent()))) {
                    $parent = $response->getViewHelper($view_helper->getParent());
                    if (is_a($parent, ViewHelperCollection::class)) {
                        /** @var $parent ViewHelperCollection */
                        $parent->append($name, $view_helper);
                    }
                }
            }
        }
    }