To find objects with a long wait time, I have created a while loop in a method as follows: function LocateObject(hardPath, basePath, propArray,valuesArray, childObject) { try ...
While the StubObject works, I'm not sure it is necessary. That routine for creating the stub object is, as I understand, essentially what happens when "WaitAliasChild" returns without finding the child object. The same StubObject is returned with an Exists property with a value of "false".
If you're looking to detect whether or not an object exists, the best way is to use one of those WaitNNN methods.