old_contents: 'use strict'
  
  let emptyToNull = (data, outputData) => {
  		for (let key in data) {
  			let currentValue = null
  
  			if (data[key] instanceof Array) {
  				currentValue = emptyToNull(data[key], [])
  			} else if (typeof data[key] === 'object') {
  				currentValue = emptyToNull(data[key], {})
  			} else if (data[key] === '') {
  				currentValue = null
  			} else {
  				currentValue = data[key]
  			}
  
  			if (outputData instanceof Array) {
  				outputData.push(currentValue)
  				continue;
  			}
  			outputData[key] = currentValue
  		}
  		return outputData
  	},
  	getNested = ({parent, field}) => {
  		if ((typeof parent !== 'object') || (typeof field !== 'string')) {
  			return null
  		}
  		let fieldData = field.split('.'),
  			currentElement = parent
  		for (let i in fieldData) {
  			let innerElement = fieldData[i]
  			if (!currentElement || !currentElement[innerElement]) {
  				return currentElement
  			}
  			currentElement = currentElement[innerElement]
  		}
  		return currentElement
  	}
  
  module.exports = {emptyToNull, getNested}
  
new_contents: 'use strict'
  
  let emptyToNull = (data, outputData) => {
  		for (let key in data) {
  			let currentValue = null
  
  			if (data[key] instanceof Array) {
  				currentValue = emptyToNull(data[key], [])
  			} else if (typeof data[key] === 'object') {
  				currentValue = emptyToNull(data[key], {})
  			} else if (data[key] === '') {
  				currentValue = null
  			} else {
  				currentValue = data[key]
  			}
  
  			if (outputData instanceof Array) {
  				outputData.push(currentValue)
  				continue;
  			}
  			outputData[key] = currentValue
  		}
  		return outputData
  	},
  	getNested = (parent, field) => {
  		if ((typeof parent !== 'object') || (typeof field !== 'string')) {
  			return null
  		}
  		let fieldData = field.split('.'),
  			currentElement = parent
  		for (let i in fieldData) {
  			let innerElement = fieldData[i]
  			if (!currentElement || !currentElement[innerElement]) {
  				return currentElement
  			}
  			currentElement = currentElement[innerElement]
  		}
  		return currentElement
  	}
  
  module.exports = {emptyToNull, getNested}
  
subject: fix for the toolbelt getNested