Support if statements with functions. Fix parsing functions without parameters