結果 : how to check undefined object in javascript