Detects SG nodes without using typeof on node methods. Uses try/catch: if calling subtype() succeeds and returns a value, it's an SG node.
Detects SG nodes without using typeof on node methods. Uses try/catch: if calling subtype() succeeds and returns a value, it's an SG node.