You want `!isStorageBug(err) || !ttl`. The statement above reduces to `!isStorageBug(err) || (true && ttl)` which the `ttl` handling is incorrect. We want it to throw if ttl is not defined always (because it's a persistent value that failed to store) or if it's not one of the expected storage values.