This assigment should be inside the if, right?