src/Viserio/Component/Filesystem/FilesystemAdapter.php
public function has(string $path): bool
    {
        $has = $this->driver->has($path);

        if ($has === null) {
            return false;
        }

        if (\is_array($has)) {
            return $has['path'] !== '';
        }

        return $has;
    }
public function has(string $path): bool
    {
        $has = $this->driver->has($path);

        if ($has === null) {
            return false;
        }

        if (\is_array($has)) {
            return $has['path'] !== '';
        }

        return $has;
    }
Check whether a file exists.

@param string $path

@return bool