結果 : check if dictionary is not empty python