Why do we need this if statement?