結果 : check if path is empty python