This variable doesn't seem to be used outside of the ```if``` block starting at L591.  It would be clearer if it were declared down there.