This was original code that I was refactored to be less nested, I would hesitate to change the type in case something has an explicit catch for it later.