`$projectList.empty();` is probably better here (same thing, but explicit)