結果 : how to check if object has property in javascript