diff --git a/src/Controller/BlockClassController.php b/src/Controller/BlockClassController.php
index 4eb35c2..f40870c 100644
--- a/src/Controller/BlockClassController.php
+++ b/src/Controller/BlockClassController.php
@@ -277,16 +277,16 @@ class BlockClassController extends ControllerBase {
     if ($block_classes_stored != NULL) {
       // Get the array values and id in the keys.
       $block_classes_stored = array_values($block_classes_stored);
-    }
 
-    foreach ($block_classes_stored as $block_class) {
 
-      $table .= '<tr>';
-      $table .= '<td>' . $block_class . '</td>';
-      $table .= '</tr>';
+      foreach ($block_classes_stored as $block_class) {
 
-    }
+        $table .= '<tr>';
+        $table .= '<td>' . $block_class . '</td>';
+        $table .= '</tr>';
 
+      }
+    }
     $table .= '</tbody>';
     $table .= '</table>';
 
