code: function checkType(obj, keyName) {
    return obj && typeof obj === 'object' && Object.keys(obj).length === 1 &&
      obj.hasOwnProperty(keyName);
  }
docs: Returns true if obj is a representation of a CloudFormation intrinsic, i.e. an object with a
  single property at key keyName.