Maybe change this around and escape earlier here?
```
if (options.getNetworks().isEmpty()) {
  // maybe logging here?
  return;
}
// rest here
```