we need to convert all empty sets to nil, but if we assign nil to s we can't unlock later. This stores whether nil must be returned.