removeEmptyEntries function
Remove all entries of list that are true for isEmptyObject.
Returns true if list.isNotEmpty.
Implementation
bool removeEmptyEntries(List? list) {
if (list == null || list.isEmpty) return false;
list.removeWhere(isEmptyObject);
return list.isNotEmpty;
}