This is not accurate enough if a1[i] is an object/array.