Check for ob_get_length()) before calling ob_end_clean()