type('MyObject')
to return "O" when teh object doesn't exist. Because when an variable is set to NULL it retains its variable type. So you can try these methods to absolutley make sure you're dealing with a live object:?type('oObject') and not isnull(oObject)
?type('oObject.Name') &&Or any other property, if its not a "U" you've got an object
?vartype(oObject) && Vartype is faster than type and won't return O for a NULL variable.