check ob_get_level() before ob_flush()