It is set later inside one of the branches of the if, but the other branches abort the execution of the method, so there's no need to define it outside the if.