protected function canReadFile($filename) { $path = "{$this->path}/{$filename}"; return is_file($path) && is_readable($path); }