Check If Variable Is An Array Javascript Methods