Add `getLast` extension