Fix typeof-array-check