function getPathValue (sourceValue, dataPath, fallback) {
  return (dataPath === '' ? sourceValue : _.get(sourceValue, dataPath, fallback));
}
This function is little modified version of lodash _.get()
where if path is empty it will return source object instead undefined/fallback value

@param {Object} sourceValue - source from where value is to be extracted
@param {String} dataPath - json path to value that is to be extracted
@param {*} fallback - fallback value if sourceValue doesn't contain value at dataPath
@returns {*} extracted value