diff --git a/src/MenuItem/RadioItem.php b/src/MenuItem/RadioItem.php
index <HASH>..<HASH> 100644
--- a/src/MenuItem/RadioItem.php
+++ b/src/MenuItem/RadioItem.php
@@ -52,13 +52,16 @@ class RadioItem implements MenuItemInterface, ToggableItemInterface
                 ? $parentItem->getItems()
                 : $cliMenu->getItems();
 
+
+            $filtered = array_filter(
+                $siblings,
+                function (MenuItemInterface $item) {
+                    return $item instanceof self;
+                }
+            );
+
             array_walk(
-                array_filter(
-                    $siblings,
-                    function (MenuItemInterface $item) {
-                        return $item instanceof self;
-                    }
-                ),
+                $filtered,
                 function (RadioItem $checkableItem) {
                     $checkableItem->setUnchecked();
                 }
array_walk() does not like functions are first parameter