As you can see on screenshot, conditional task with EnemyDetected variable inside evaluator was not highlighted by Find feature. Can be quite misleading in big trees.. I myself deleted a couple of variables because of this, mistakenly thinking that they are no longer used.