diff --git a/file_browser.install b/file_browser.install
index 20d9d0d..590cd82 100644
--- a/file_browser.install
+++ b/file_browser.install
@@ -126,18 +126,19 @@ function file_browser_update_8002() {
   }
 
   /** @var \Drupal\image\Entity\ImageStyle $image_style */
-  $image_style = ImageStyle::load('file_entity_browser_small');
-  $effect = $image_style->getEffect('374fe20a-a27c-45f5-b76d-d851cabcf7b0');
-  $effect->setConfiguration([
-    'uuid' => '374fe20a-a27c-45f5-b76d-d851cabcf7b0',
-    'id' => 'image_scale_and_crop',
-    'weight' => 1,
-    'data' => [
-      'width' => 100,
-      'height' => 100,
-    ],
-  ]);
-  $image_style->save();
+  if ($image_style = ImageStyle::load('file_entity_browser_small')) {
+    $effect = $image_style->getEffect('374fe20a-a27c-45f5-b76d-d851cabcf7b0');
+    $effect->setConfiguration([
+      'uuid' => '374fe20a-a27c-45f5-b76d-d851cabcf7b0',
+      'id' => 'image_scale_and_crop',
+      'weight' => 1,
+      'data' => [
+        'width' => 100,
+        'height' => 100,
+      ],
+    ]);
+    $image_style->save();
+  }
 }
 
 /**
@@ -145,52 +146,53 @@ function file_browser_update_8002() {
  */
 function file_browser_update_8003() {
   /** @var \Drupal\views\Entity\View $view */
-  $view = View::load('file_entity_browser');
-  $display = &$view->getDisplay('default');
-  $display['display_options']['filters']['status'] = [
-    'id' => 'status',
-    'table' => 'file_managed',
-    'field' => 'status',
-    'relationship' => 'none',
-    'group_type' => 'group',
-    'admin_label' => '',
-    'operator' => 'in',
-    'value' => [
-      1 => '1',
-    ],
-    'group' => 1,
-    'exposed' => FALSE,
-    'expose' => [
-      'operator_id' => '',
-      'label' => '',
-      'description' => '',
-      'use_operator' => FALSE,
-      'operator' => '',
-      'identifier' => '',
-      'required' => FALSE,
-      'remember' => FALSE,
-      'multiple' => FALSE,
-      'remember_roles' => [
-        'authenticated' => 'authenticated',
+  if ($view = View::load('file_entity_browser')) {
+    $display = &$view->getDisplay('default');
+    $display['display_options']['filters']['status'] = [
+      'id' => 'status',
+      'table' => 'file_managed',
+      'field' => 'status',
+      'relationship' => 'none',
+      'group_type' => 'group',
+      'admin_label' => '',
+      'operator' => 'in',
+      'value' => [
+        1 => '1',
+      ],
+      'group' => 1,
+      'exposed' => FALSE,
+      'expose' => [
+        'operator_id' => '',
+        'label' => '',
+        'description' => '',
+        'use_operator' => FALSE,
+        'operator' => '',
+        'identifier' => '',
+        'required' => FALSE,
+        'remember' => FALSE,
+        'multiple' => FALSE,
+        'remember_roles' => [
+          'authenticated' => 'authenticated',
+        ],
+        'reduce' => FALSE,
       ],
-      'reduce' => FALSE,
-    ],
-    'is_grouped' => FALSE,
-    'group_info' => [
-      'label' => '',
-      'description' => '',
-      'identifier' => '',
-      'optional' => TRUE,
-      'widget' => 'select',
-      'multiple' => FALSE,
-      'remember' => FALSE,
-      'default_group' => 'All',
-      'default_group_multiple' => [],
-      'group_items' => [],
-    ],
-    'entity_type' => 'file',
-    'entity_field' => 'status',
-    'plugin_id' => 'file_status',
-  ];
-  $view->save();
+      'is_grouped' => FALSE,
+      'group_info' => [
+        'label' => '',
+        'description' => '',
+        'identifier' => '',
+        'optional' => TRUE,
+        'widget' => 'select',
+        'multiple' => FALSE,
+        'remember' => FALSE,
+        'default_group' => 'All',
+        'default_group_multiple' => [],
+        'group_items' => [],
+      ],
+      'entity_type' => 'file',
+      'entity_field' => 'status',
+      'plugin_id' => 'file_status',
+    ];
+    $view->save();
+  }
 }
