結果 : python call method if object is not none