Interesting project, but I'd stick with idx[0] since I have transpilation setup most of the time anyway.
Also some of you could be interested in optional.js[1], it's Java's Optional for js, makes it arguably more pleasant to deal with null values, no help for chaining though!