結果 : how to check if nested list is empty python