結果 : python check if attribute exists inside class