You don't even need the if blocks. This will be a noop if the args are empty.