結果 : check if attr exists python