def is_valid_session(session: dict) -> bool:
    """
    checks if passed dict has enough info to display event

    :param session: dict representing a session
    :return: True if it has enough info (title, start time, end time), False otherwise
    """

    try:
        session_keys = session.keys()
    except AttributeError:
        print("probable error in ajax request...")
        return False  # not a dict

    for expected in 'title', 'start', 'end':  # minimal requirements
        if expected not in session_keys:
            return False

    return True