Initial NodeIsPromoted condition implementation.
Fixed issues as per @fubhy's code review.