def find_first_feature(tree):
    """Finds the first feature in a tree, we then use this in the split condition
        It doesn't matter which feature we use, as both of the leaves will add the same value
        Parameters
        ----------
        tree : dict
            parsed model
        """
    if 'split' in tree.keys():
        return tree['split']
    elif 'children' in tree.keys():
        return find_first_feature(tree['children'][0])
    else:
        raise Exception("Unable to find any features")