Check last param on false value instead of isUndefined

Last value of the array `params` has value '' (empty string) in ie8, and it has value `undefined` in other browsers. Therefore it is necessary to check for false value instead of isUndefined.