Use more idiomatic (if less performant in cases that should never occur) code for trimming syncService.pingTimes.