Or
[code]
If CBool(ObjPtr(objMyObject))

Returns true iff object is set