diff --git a/Kwf/Config.php b/Kwf/Config.php
index <HASH>..<HASH> 100644
--- a/Kwf/Config.php
+++ b/Kwf/Config.php
@@ -11,6 +11,10 @@ class Kwf_Config
 
         $cfg = Kwf_Registry::get('config');
         foreach (explode('.', $var) as $i) {
+            if (!isset($cfg->$i)) {
+                $cfg = null;
+                break;
+            }
             $cfg = $cfg->$i;
         }
         if ($cfg) {
change Kwf_Config::getValueArray to not cause error if parent setting doesn't exist, like getValue does