You did add the `headers_sent()` check there - that's what I'm referring to. :)