Currently we are doing 2 loops through `tocSections` array. One to filter headers with text and another one in `toc.getData` method to create a section object with `createSection` callback. If we put first filtering logic inside `createSection callback`, we could end up with only one loop.