Thanks for spotting this bug.

The `len()` check is all good, but please keep the `AttributeError` structure from before, as that will allow people to use `KeysEqual` with things that behave like dicts but do not subclass `dict`.