Because then I need to save output to a variable and return it after restoring layout. There's no `finally` in PHP 5.4.