結果 : how to check for none in python