Adding assertion to Node.isChild