-table of content menu is removed if it is found to contain nothing