check for array length when evaluating isSorted
removed tabs to conform with coding style
Merge pull request #1917 from tjbarber/avoid-returning-zero-truthy-isSorted

Fixes #1870: _.indexOf with `isSorted` of `true` will incorrectly match `undefined` on an empty array.