Merge pull request #32 from goatslacker/master

Error thrown when attempting to query index on empty collection
added travis file in master
changed package.json
Returns empty array on empty collection