public static function detect($html, &$error = '') {
		if (class_exists('Whoops\Run')) {
			return false;
		}

		if (strpos($html, '<h2>Message</h2> <pre>') != false) {
			preg_match('/<h2>Message<\/h2> <pre>(.*)<\/pre>/', $html, $output_array);
			$error = trim(strip_tags($output_array[0]));
			return true;
		}

		return false;
	}