diff --git touch_icons.module touch_icons.module
index 70d9c31..ec9c248 100644
--- touch_icons.module
+++ touch_icons.module
@@ -423,8 +423,8 @@ function _touch_icons_create_touch_icon_url($key, $precomp = FALSE) {
 
   // build apple-touch-icon URL
   $url = '';
-  if ($settings['toggle_touch_icon_' . $icon_type]) {
-      if ($settings['default_touch_icon_' . $icon_type]) {
+  if (!empty($settings['toggle_touch_icon_' . $icon_type])) {
+      if (!empty($settings['default_touch_icon_' . $icon_type])) {
         if (file_exists($touch_icon = dirname($theme_object->filename) . '/' . $default_filename)) {
           $url = base_path() . $touch_icon;
         }
