You can't use asynchronous functions like this in conditions, because they have to return the correct answer immediately.
The solution is to move the asynchronous-ness to event triggers, like the AJAX object does. So instead of making a "Is thing true" condition, you'd make a "Check thing" action which then triggers "On thing result", where you can then use a "Is thing" condition (that just returns a variable returned from the result of "Check thing").