List<Relay> getConnectedRelays(Iterable<String> urls) { return urls .where((url) => isRelayConnected(url)) .map((url) => relays[url]!) .toList(); }