結果 : check if attribute exists in dict python