protected function renderCheckboxes($checkboxes)
    {
        $markup = '';
        foreach ($checkboxes as $boxes) {
            $markup .= '<li class="disable-element">';
            if (is_array($boxes)) {
                if (isset($boxes['__all__'])) {
                    $markup .= $this->renderCheckbox($boxes['__all__'], 'disable-elements-toggle');
                    unset($boxes['__all__']);
                }

                $markup .= '<ul class="disable-elements">' . $this->renderCheckboxes($boxes) . '</ul>';
            } else {
                $markup .= $this->renderCheckbox($boxes);
            }
            $markup .= '</li>';
        }
        return $markup;
    }