Javascript If Array Not Array Meaning Code