The order most certainly matters (they correspond to the parameters that are generated for the function call).

You COULD move the first one out of the IF but it would make the code a lot less clear.