diff --git a/resp_img.admin.inc b/resp_img.admin.inc
index 4ce481f..8f2aa63 100644
--- a/resp_img.admin.inc
+++ b/resp_img.admin.inc
@@ -132,23 +132,29 @@ function resp_img_add_style_form($form, &$form_state) {
     '#required' => TRUE,
   );
   $breakpoints = breakpoints_breakpoint_load_all_active();
-  $options = array();
-  foreach ($breakpoints as $breakpoint) {
-    $options[$breakpoint->name] = $breakpoint->name . ' (' . $breakpoint->breakpoint . ')';
+  if (isset($breakpoints) && !empty($breakpoints)) {
+    $options = array();
+    foreach ($breakpoints as $breakpoint) {
+      $options[$breakpoint->breakpoint] = $breakpoint->name . ' (' . $breakpoint->breakpoint . ')';
+    }
+    $form['breakpoints'] = array(
+      '#title' => t('breakpoints'),
+      '#type' => 'checkboxes',
+      '#options' => $options,
+      '#default_value' => drupal_map_assoc(array_keys($options)),
+      '#description' => t('Select the breakpoints to create an image style for'),
+      '#required' => TRUE,
+    );
+    $form['submit'] = array(
+      '#type' => 'submit',
+      '#value' => t('Create'),
+    );
+  }
+  else {
+    $form['redirect_link'] = array(
+      '#markup' => t("You need to create a breakpoint first before creating a responsive style. ") . l('Click here', 'admin/config/media/breakpoints') . t(" to continue with configuring breakpoints."),
+    );
   }
-  $form['breakpoints'] = array(
-    '#title' => t('breakpoints'),
-    '#type' => 'checkboxes',
-    '#options' => $options,
-    '#default_value' => drupal_map_assoc(array_keys($options)),
-    '#description' => t('Select the breakpoints to create an image style for'),
-    '#required' => TRUE,
-  );
-
-  $form['submit'] = array(
-    '#type' => 'submit',
-    '#value' => t('Create'),
-  );
   return $form;
 }
 
