Patch res.headerSent to return Boolean