--- field_collection.module	2011-08-18 16:13:51.000000000 +0400
+++ field_collection.module.new	2011-09-09 19:37:28.000000000 +0400
@@ -787,7 +787,7 @@ function field_collection_field_formatte
     }
   }
   // If there is no add link, add a special class to the last item.
-  if (empty($element['#suffix'])) {
+  if (empty($element['#suffix']) && count($items)) {
     $index = count(element_children($element)) - 1;
     $element[$index]['#attributes']['class'][] = 'field-collection-view-final';
   }
