here is a simple fix that will return if the list is empty or not and will match the comment in checkEvents()