diff --git a/src/Plugin/BootstrapStyles/Style/BackgroundColor.php b/src/Plugin/BootstrapStyles/Style/BackgroundColor.php
index 2556f51..7ef4dd3 100644
--- a/src/Plugin/BootstrapStyles/Style/BackgroundColor.php
+++ b/src/Plugin/BootstrapStyles/Style/BackgroundColor.php
@@ -50,6 +50,10 @@ class BackgroundColor extends StylePluginBase {
    * {@inheritdoc}
    */
   public function buildStyleFormElements(array $form, FormStateInterface $form_state, $storage) {
+    if (!$storage) {
+      return [];
+    }
+
     $form['background_color'] = [
       '#type' => 'radios',
       '#options' => $this->getStyleOptions('background_colors'),
@@ -87,6 +91,10 @@ class BackgroundColor extends StylePluginBase {
    * {@inheritdoc}
    */
   public function build(array $build, array $storage, $theme_wrapper = NULL) {
+    if (!$storage) {
+      return;
+    }
+
     if ($storage['background']['background_type'] == 'color') {
       // Assign the style to element or its theme wrapper if exist.
       if ($theme_wrapper && isset($build['#theme_wrappers'][$theme_wrapper])) {
diff --git a/src/StylesGroup/StylesGroupManager.php b/src/StylesGroup/StylesGroupManager.php
index 0004337..95c2582 100644
--- a/src/StylesGroup/StylesGroupManager.php
+++ b/src/StylesGroup/StylesGroupManager.php
@@ -153,6 +153,10 @@ class StylesGroupManager extends DefaultPluginManager {
    *   The form structure.
    */
   public function buildStylesFormElements(array &$form, FormStateInterface $form_state, array $storage, string $filter = NULL) {
+    if (!$storage) {
+      return [];
+    }
+
     // Restrict styles.
     $allowed_plugins = $this->getAllowedPlugins($filter);

