I think I'm missing something here. What does this if statement achieve?