diff --git a/nodewords.module b/nodewords.module
index c5ef92d..6f055ed 100644
--- a/nodewords.module
+++ b/nodewords.module
@@ -1508,7 +1508,7 @@ function _nodewords_output_tags($tags, $output_type = 'head') {
 
     if (!empty($template)) {
       // Allow the meta tags to have multiple values.
-      if ($tags_info[$name] != '') {
+      if (!empty($tags_info[$name]['multiple'])) {
         $content = explode("\n", $content);
       }
 
