Umm ... something like that, indeed. Though my intention was to only have 1 such check, put `if ( ! headers_sent())` 1 level above the sapi condition maybe?