why do we need this check here? we don't seem to need it anywhere else in the code base.