function isSimpleObject(thing) {
  return Object.prototype.toString.call(thing) === '[object Object]' && thing !== null
}
Convenience function to test if a value is a non-null object

@param {object} thing Value to be tested
@returns {boolean} whether or not the value is an object and not null