Adding option to show or hide empty terms