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.
Merge pull request #88 from artzhuchka/patch-1

Check last param on false value instead of isUndefined