Looks like the condition goes before function call in Livescript

I'm new to Livescript. A function call in a if-else condition like this could cause an unexpected behavior. How do I avoid this ambiguity in the future?