could this check happen before the conversion above?