resource public \Bitrix\Main\IO\Directory::isDirectoryExists( string $path );
Static method defines, if folder exist.