diff --git a/dlike.inc b/dlike.inc
index c7d66e1..a019e8b 100755
--- a/dlike.inc
+++ b/dlike.inc
@@ -76,7 +76,7 @@ function dlike_append($flag_type, $content_id, $flag_name) {
         // $dlike_append_names = dlike_user_list($type, $flag->get_content_id($object), $flag->name);
         // Get the flag counts for a piece of content
         $dlike_append_count = flag_get_counts($flag_type, $content_id);
-        if ($dlike_append_count && $dlike_append_count[$flag_name] > 0) {
+        if (isset($dlike_append_count[$flag_name]) && $dlike_append_count[$flag_name] > 0) {
           // Get the text string set by the user
           $dlike_text_value = variable_get('dlike-' . $flag_name . '_text_value', NULL);
           // Pass the string through t().
