def determine_metric(metrics, data):
    """
    Util function to check which of the provided eval metrics is available in the current data dictionary
    """
    found = False
    eval_metric = None
    for metric in metrics:
        if metric in data.keys():
            eval_metric = metric
            found = True
            break
    return found, eval_metric