Reads like a double negative, perhaps `if (triggeredByLastKeyPathComponent) ++stackDepth;`?