get('OVERVIEW.GROUPS') as $group => $rooms) { foreach($rooms as $room) { try { $groups[$group][] = new Room($room); } catch(NotFountException $e) { // just ignore unknown rooms continue; } } } return $groups; } }