diff --git a/amptheme.theme b/amptheme.theme
index bbbda3c..083bf16 100644
--- a/amptheme.theme
+++ b/amptheme.theme
@@ -53,13 +53,18 @@ function amptheme_preprocess_html(&$variables) {
           ->toString();
       }
     }
+    elseif (is_array($logo_url) && empty($logo_url['url'])) {
+      $logo_url = '';
+    }
     /* If get_headers fails, check php.ini
      *   - allow_url_fopen is On
      *   - OpenSSL is enabled (if required)
      */
-    $headers = get_headers($logo_url);
-    if (stripos($headers[0], "200 OK") ? TRUE : FALSE) {
-      $variables['logo_url'] = $logo_url;
+    if (!empty($logo_url)) {
+      $headers = get_headers($logo_url);
+      if (stripos($headers[0], "200 OK") ? TRUE : FALSE) {
+        $variables['logo_url'] = $logo_url;
+      }
     }
   }

