clarify on if statements and function calls