code: public boolean wasPathPlayed(String path) {
      for (Playback playback : playedSounds) {
        if (idIsForPath(playback.soundId, path)) {
          return true;
        }
      }
      return false;
    }
docs: Returns {@code true} if the given path was played.