結果 : check if attribute is none python