protected function setCacheState($useCache)
    {
        if (is_bool($useCache)) {
            $this->useCache = $useCache;
        } else {
            // every invalid param would activate cache
            $this->useCache = true;
        }
    }