I use this construction to check the presence of path in device registration

          if(reg_fetch_contacts("location", "$fu", "caller") && $(ulc(caller=>path)[0]) == $null) {
              handle_ruri_alias();
          }

Is possible to check path presence after lookup("location") function call?

Sergey