/Engine/Source/Editor/BehaviorTreeEditor/Public/BehaviorTreeEditor.h
Check whether the behavior tree mode can be accessed (i.e whether we have a valid tree to edit)
bool CanAccessBehaviorTreeMode() const