src/Filesystem/Directory.php
public static function exists(string $dir = ''): bool
    {
        $dir = static::normalizePath($dir);
        return static::verifyPath($dir) && \file_exists($dir) && \is_dir($dir);
    }
public static function exists(string $dir = ''): bool
    {
        $dir = static::normalizePath($dir);
        return static::verifyPath($dir) && \file_exists($dir) && \is_dir($dir);
    }
public static function exists ( string $ dir = '' ) : bool { $ dir = static :: normalizePath ( $ dir ) ; return static :: verifyPath ( $ dir ) && \ file_exists ( $ dir ) && \ is_dir ( $ dir ) ; }
Checks whether directory exists.

@param string $dir
@return bool
Checks whether directory exists .