fwiw, I think you can just use `if plot.current_tree.species` because templates fail silently. If plot.current_tree is None, plot.current_tree.species will be a falsy value in the context of the template.