結果 : python check if class attribute is not none