結果 : check if array has an element javascript