protected function createMenus($menus)
    {
        $locations = [];

        foreach ($menus as $menu) {
            $menu_id = $this->createMenu($menu['name']);

            if ($menu_id) {
                $locations[$menu['location']] = $menu_id;
                $this->populateMenu($menu_id, $menu['items']);
            }
        }

        set_theme_mod('nav_menu_locations', $locations);
    }