isCompressed should be at least declared in the top of the function still. Assignment down here's fine if that's the only spot where we can first get that value, but we should at least have the vars declared at the top of the function so that readers know what all is involved.