Improves the efficiency of getting the closest event by using the slice operator early on and removes a print statement.
Adds an empty list response if no data exist.