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