The active key was accessed to check if the key-blocks were empty, the variable was then shadowed by the iterator. Check if the key blocks list is empty instead.
The active key was accessed to check if the key-blocks were empty, the variable was then shadowed by the iterator. Check if the key blocks list is empty instead.