Why did this need to get moved into the try/catch?  Why didn't it work outside like it was before?  And why didn't the try catch just deal with the inability to access localStorage?