validate renamed hasNoEmptyNodes