public static function isValid($path) { return file_exists($path . "/level.dat") and is_dir($path . "/db/"); }