This can just be `let early_end = list.with_mut_ref(|list| list.list.len() == 0);`