Need to check defined on the reference, not the dereferenced array.