結果 : check if matrix is empty python