Exchange if and with cr_kwargs_lock