No, you're right. My brain is over-thinking things.

I figured the missing `var` could be problematic, but I realised now that it's passed inside the scope of the function.