Take an object like this
book.chapter.paragraph.sentence.word
assume you want to retrieve a certain word
book[6][3][15][3]
to be certain to reference an existing word, do you really have to perform a check like this...
if(typeof book[6] !== "undefined" && typeof book[6][3] !== "undefined" && typeof book [6][3][15] !== "undefined" && typeof book[6][3][15][3] !== "undefined") ...
...or is there a better way?