結果 : check if id exists in array of objects javascript