Helper/File.php
public function isFilePathExistWithFallback($filename)
    {
        $emailPath = $this->getOutputFolder() . DIRECTORY_SEPARATOR . $filename;
        $archivePath = $this->getArchiveFolder() . DIRECTORY_SEPARATOR . $filename;
        return is_file($emailPath) ? true : (is_file($archivePath) ? true : false);
    }
public function isFilePathExistWithFallback($filename)
    {
        $emailPath = $this->getOutputFolder() . DIRECTORY_SEPARATOR . $filename;
        $archivePath = $this->getArchiveFolder() . DIRECTORY_SEPARATOR . $filename;
        return is_file($emailPath) ? true : (is_file($archivePath) ? true : false);
    }
public function isFilePathExistWithFallback ( $ filename ) { $ emailPath = $ this -> getOutputFolder ( ) . DIRECTORY_SEPARATOR . $ filename ; $ archivePath = $ this -> getArchiveFolder ( ) . DIRECTORY_SEPARATOR . $ filename ; return is_file ( $ emailPath ) ? true : ( is_file ( $ archivePath ) ? true : false ) ; }
Check if file exist in email or archive folder

@param string $filename
@return boolean
Check if file exist in email or archive folder