結果 : how to check for an array in javascript