tryZero static method
Like zero, but silently does nothing if array is null or
can't be modified (e.g. an unmodifiable list).
Implementation
static void tryZero(List<int>? array) {
if (array == null) return;
try {
zero(array);
} catch (_) {}
}