simplification:  var headers = options && options.headers;