manager-bundle/src/Command/InstallWebDirCommand.php
private function isExistingOptionalFile(SplFileInfo $file, string $webDir): bool
    {
        $path = $file->getRelativePathname();

        return 'robots.txt' === $path && $this->fs->exists($webDir.'/'.$path);
    }
private function isExistingOptionalFile(SplFileInfo $file, string $webDir): bool
    {
        $path = $file->getRelativePathname();

        return 'robots.txt' === $path && $this->fs->exists($webDir.'/'.$path);
    }
Checks if an optional file exists.