def new_tree_object(previous, obj):
    """
    Check that we are still on the same project/subject/session.

    :param previous: previous loop info
    :param obj: object
    :return: True if new info, False otherwise
    """
    if obj['project_id'] != previous['project'] or \
       obj['subject_label'] != previous['subject'] or \
       obj['session_label'] != previous['session']:
        return True

    return False