public static function isDir($dir, $strict = null)
    {
        if (is_dir($dir)) {
            return true;
        }