Since we can count on ES5 in Gaia, this can be expressed as `Array.isArray(sw[i])`