Generate list of categories in advance.
Added option to check if a sub-category is empty before adding it to the
list.
Merge branch 'master' of https://github.com/slovit/bestbuy.git