I would set it to null instead and not call the setter is null below (would be easier IMO).