What's the best way to test for the existence of an array element in a structure several layers deep? For instance:
if (typeof arr[a][b][c] === 'undefined') { ...do something... }
If [a] or [b] don't exist, we won't be able to test for [c].
Are there underscore or lodash functions to handle this?