What about reg.present instead of reg.value_exists?