if (!track.isRated() && (toOmit == null || !toOmit.contains(track)) && track.exists())
if (track.isActive() && !track.isRated() && (toOmit == null || !toOmit.contains(track)))
  public Track chooseUnratedTrack(Random random, Set toOmit) {    Track[] tracks = getTracks();    List list = new Vector();    for (int i = 0; i < tracks.length; i++) {      Track track = tracks[i];      if (!track.isRated() && (toOmit == null || !toOmit.contains(track)) && track.exists())        list.add(track);    }      // If there are no unrated tracks then return null.    if (list.size() == 0)      return null;    int rand = random.nextInt(list.size());    return (Track) list.get(rand);  }