Alternatively, could do the first line of the function as:
if (iterable.isEmpty()) return new Future.value();