diff --git a/src/Service/UWService.php b/src/Service/UWService.php
index 21d6d0a5a9f6250db1700597fe140c07f933034c..7560191934523794837ccf181012b73c43cc06ab 100644
--- a/src/Service/UWService.php
+++ b/src/Service/UWService.php
@@ -353,7 +353,7 @@ class UWService implements UWServiceInterface {
   public function uwCountMenuItems($menus, &$menu_items_count): void {
 
     // Step through the menus and check for submenus and count.
-    foreach ($menus as $index => $menu) {
+    foreach ($menus as $menu) {
 
       // If there is a submenu, recursivley call the count function.
       if (isset($menu['submenu']) && count($menu['submenu']) > 0) {