Symfony\Component\Filesystem\Filesystem::exists
Checks the existence of files or directories.
Signature
public function exists(Traversable
$files )
Parameters
$files
— object- A filename, an array of files, or a \Traversable instance to check
Returns
- Boolean
- true if the file exists, false otherwise