Not strictly speaking. It's set once outside of the function and once inside of the function, to prevent any unnecessary errors.