diff --git a/Lib/Formatter/Html.php b/Lib/Formatter/Html.php
index 1cf1caf..9d27240 100644
--- a/Lib/Formatter/Html.php
+++ b/Lib/Formatter/Html.php
@@ -41,6 +41,7 @@ class Html extends Formatter {
// so take the first element of the 'result' array
$func = key($data['result']);
$data = reset($data['result']);
+ $data = is_array($data) ? $data : array();
$title = $func;
$content = '';