Adds a conditional check whether the dropdown should be shown or hidden.
Simplifies clientside chat html templates.