Js Check If Variable Is Array