https://translatewiki.net/w/i.php?title=MediaWiki:Apihelp-logPaymentsFormError-param-stack/en&action=edit
Isn't "if" more appropriate than "when" here?