One solution may be to test if there are nodes for the termX and after display it. (This code is writing without test and only via memory)Is there a module or any code snippet to hide navigation items if the corresponing taxonomy term or view doesn't have any nodes assigned? I searched but couldn't find any.