Note that you don't have to put this here.  If you remove this and the else clause, then you can just call the function after the if.