From looking at this, is the if statement necessary?