AI PathExist functionality

Stuck in the same situation (problem 1) did you solve it?