List<T?> ifEmpty<T>(Iterable<T>? list, {T? then}) => [ ...?list, if (list?.isNotEmpty != true) then, ];