Function is now working.  Passing it one, two, or zero values returns the appropriate response.