Is this if statement needed? Seems ok to just set to null.