Aren't try blocks block scoped? Or is it just catch blocks? Probably best to move the variable declaration outside, in any case.