結果 : javascript if object attribute exists