pub fn get_track_entry_<T, F: Fn(usize, &ModelEntry) -> Option<T>>(
    v: &[Arc<ModelEntry>],
    predicate: &F
) -> Option<T>