Also avoid using not for the key

Using false as a key is perfectly valid and should not halt the
iterator.