How to hide go.textBlock option for certain nodes

Hello, new user to Go.js here.

I’m making a small application that organizes course materials for a class into a small mindmap. Under the mindmap, for each node there is a topic. Under each node, there are options to view links such as homework or notes. The problem is, not every node will have a homework associated with the topic, so I want to hide the textBlock option (right clicking the node), so users do not have to be directed to a blank page if there is no homework. Is there any implementation for this? I already checked the API but I have a feeling I’m missing something.

Thanks for your time.

Disregard, figured it out xD