結果 : how to check if an array in javascript