結果 : how to check if dictionary is not empty python