Returns this List if it's not empty, otherwise returns value.
value
List<T> ifEmpty(List<T> value) => isEmpty ? value : this;