You can achieve the same effect if coffee by writing:

_.clone(headers ? @response.headers)