[RANDOM-ID] - throw new error when length===0
Merge pull request #7 from michalbe/master-temp

[RANDOM-ID] - throw new error when length===0