def check_course_sync_agent_type(json):
    """
    Check if the type of the incoming statement is course.

    :param json: A statement, possibly with type course.
    :type json: union(dict(str, NoneType), dict(str, dict(str, str)))
    :return: A boolean, true if the type of the incoming statement is a course, false otherwise.
    :rtype: bool
    """
    obj_type = json['statement']['object']['definition']['type'].split("/")[-1]
    check_course = (obj_type == "course")
    return check_course