I don't think we need to give support for spelling mistakes. Someone using this API should use the parameter names that are expected by this API, so the enclosing if would be unnecessary.