Only pass attach data to response if it exists