children() as $item) { if (isset($item['id'], $item['name'])) { $itemList[(int)$item['id']] = (string)$item['name']; } } return $itemList; }