diff --git a/system/libraries/Parser.php b/system/libraries/Parser.php
index 17a985f..63dc023 100644
--- a/system/libraries/Parser.php
+++ b/system/libraries/Parser.php
@@ -54,11 +54,11 @@
 		
 		foreach ($data as $key => $val)
 		{
-			if ( ! is_array($val))
+			if (is_string($val))
 			{
 				$template = $this->_parse_single($key, $val, $template);
 			}
-			else
+			elseif (is_array($val))
 			{
 				$template = $this->_parse_pair($key, $val, $template);		
 			}