def get_events(request):
    """
    Return the message storage on the request if it exists, otherwise return
    an empty list.
    """
    if not hasattr(request, '_ga_events'):
        return []
    return request._ga_events