Adding code to hide top level terms without nodes