Fix #1589

Does this look reasonable? I’m a bit uneasy because the condition now tests for the parameter on one side, but for the argument on the other side, which seems odd.