Combine two functions with the same name (using an optional param)