Avoid throwing exceptions when a parameter is optional