public function cacheIsAllow() { $isAllow = (bool) ($this->cache && $this->cacheDir); return $isAllow; }