Returns true if the list is null or 0-length.
static bool isEmptyList(Iterable? list) { return list == null || list.isEmpty; }