[BUGFIX] Incorrect check for empty folder