If you use underscore >= 1.9.0, you can use property and propertyOf:
d={a: {b: "c"}}
_.property(["a", "b", "c", "e"])(d) // undefined
_.property(["a", "b"])(d) // "c"
_.propertyOf(d)(["a", "b", "c", "e"]) // undefined
_.propertyOf(d)(["a", "b"]) // "c"