diff --git a/system/functions.php b/system/functions.php
index 74055bb7..514a13d6 100644
--- a/system/functions.php
+++ b/system/functions.php
@@ -167,7 +167,9 @@ function getFlagImage($country)
  */
 function getBoolean($v)
 {
-	if(!$v || !isset($v[0])) return false;
+	if(is_bool($v)) {
+		return $v;
+	}
 
 	if(is_numeric($v))
 		return intval($v) > 0;