diff --git a/laravel/html.php b/laravel/html.php
index bcb69628..be83fc03 100644
--- a/laravel/html.php
+++ b/laravel/html.php
@@ -306,6 +306,8 @@ class HTML {
{
$html = '';
+ if (count($list) == 0) return $html;
+
foreach ($list as $key => $value)
{
// If the value is an array, we will recurse the function so that we can