Avoid array dereferencing because key might not exist
Merge pull request #65 from willdurand/fix-undefined

Avoid array dereferencing because key might not exist