Ruby Check If Variable Is Array Js W3schools