even though this is a comment, it should be using Array.isArray to detect an array - can you link to the part of the spec where this is a question?