With only two elements in this list, the overhead of creating a whole anonymous type for the list and iterating over it seems like too much mental overhead. How about just:

```
if i.iterator != nil {
  i.iterator.Close()
}
if i.readOptions != nil {
  i.readOptions.Close()
}
```