Adds isNodeAttached helper method.