Validate that parameters passed to .add() are what's expected: a string, optionally a list of strings, and a function