def safetyCheck(X, Y):
    """
    Checks for duplicate data and ends TE estimation if duplicate
    data points are found

    Parameters
    ----------
    X: Array that holds the X values
    Y: Array that holds the Y values

    Returns
    -------
    True if the safety check passes and False otherwise
    """
    checkDict = {}
    for i in range(len(X)):
        if checkDict.get((X[i], Y[i])) == None:
            checkDict[X[i], Y[i]] = 1
        else:
            return False
    return True
