diff --git a/modules/ds_extras/includes/ds_extras.registry.inc b/modules/ds_extras/includes/ds_extras.registry.inc
index e39eea2..38b1ac5 100644
--- a/modules/ds_extras/includes/ds_extras.registry.inc
+++ b/modules/ds_extras/includes/ds_extras.registry.inc
@@ -83,7 +83,7 @@ function _ds_extras_theme_registry_alter(&$theme_registry) {
   }
 
   // Remove ds_preprocess_field in case field templates is not enabled.
-  if (!variable_get('ds_extras_field_template', FALSE)) {
+  if (!variable_get('ds_extras_field_template', FALSE) && isset($theme_registry['field']['preprocess functions'])) {
     $key = array_search('ds_extras_preprocess_field', $theme_registry['field']['preprocess functions']);
     if (!empty($key)) {
       unset($theme_registry['field']['preprocess functions'][$key]);
