nest if without an else clause for the inner if => actually a single if: `if (obj && obj.removed && obj.text) && obj.removed.length !== obj.text.length) { ... `