private function returnLocalParam($localStorage, $variable, $default = false)
    {
        if (!empty($variable)) {
            if (isset($this->{$localStorage}[$variable])) {
                return $this->{$localStorage}[$variable];
            } else {
                return $default;
            }
        } else {
            return $this->{$localStorage};
        }
    }