handle empty toc