no need to fill a new array with nulls, `Array.ofDim` should be fine