結果 : check if an element exists in an array of objects javascript