From the console in your project directory, npm install dotty
Then at the top of your code, import dotty with: var dotty = require('dotty')
then if obj
is the object posted above, you can call
dotty.exists(obj, "data.info.user.email")
and it will yield true
or false
instead of throwing an error.