the following code in JavaScript/TypeScript will fail if b is null:
b
a.b.c = 1;
Lodash provides a safe way to do this with https://lod