based on the code, params is guaranteed to be at least one element long.  do you still care?  will fix if you do.