結果 : how to check if list not empty python