結果 : how to check if a key is present in an array of objects javascript