better isNode detection