As above, since the call is identical, I would use the `if... else...` to select the function and then make the call outside of the `if... else...` block, to reduce boilerplate