結果 : javascript if array has elements