protected function fileExists($path) { if (!isset($this->file_exists_cache[$path])) { $this->file_exists_cache[$path] = file_exists($path); } return $this->file_exists_cache[$path]; }