function ensureConnectionAttrs(canConnect) {
  if (isObject(canConnect)) {
    return canConnect;
  } else {
    return {};
  }
}
Ensure connection attributes is object.

@param {Object|boolean} canConnect

@return {Object}