More reliable isNode detection. Fixes #70