public function sanitizeModuleData($sidebars)
    {
        foreach ($sidebars as &$sidebar) {
            if (!empty($sidebar) && is_array($sidebar)) {
                foreach ($sidebar as &$module) {
                    $module['hidden'] = isset($module['hidden']) && $module['hidden'] == 'hidden';
                }
            }
        }

        return $sidebars;
    }