Updated array tests to use "Array.isArray()" in place of the less reliable ".length" check.