結果 : check if array of objects has property javascript