don't display empty classes in navbars