Added check for that the last upload folder still exists