Check If Variable Is An Array Js