/** * Check if file exists * * @param string $path Path to check OPTIONAL * @param boolean $forceFile Flag OPTIONAL * * @return boolean */ public function isFileExists($path = null, $forceFile = false) { if (self::STORAGE_S3 == $this->getStorageType() && !$forceFile) { $exists = $this->getS3() ? $this->getS3()->isExists($this->generateS3Path($path)) : false; } else { $exists = parent::isFileExists($path, $forceFile); } return $exists; }