String variables passed to UN:A and most other name-changing functions become (permanently) bound to the corresponding ingame value. That's why it doesn't accept ert vars. Use Era 2.47 syntax for name changing instead.
To check if a ert variable is defined, you can get its value. If the value is "String was not found.", then this ert variable is not defined anywhere.