結果 : check if array has object javascript