It is strange to check for Collection but cast to Iterable