[Koha-bugs] [Bug 30017] Should we prefer `loop.first` and `loop.last` over calling `variable.count` to reduce our DB hits