I suppose a greater point here is that this circumstance probably won't ever happen. AFAIK the platform will always provide an iterable of Unit instances, yet this function definition implies that it might not under some circumstance.