def binary_check(classes):
    """
    Check if the problem is a binary classification.

    :param classes: confusion matrix classes
    :type classes: list
    :return: is_binary as bool
    """
    num_classes = len(classes)
    is_binary = False
    if num_classes == 2:
        is_binary = True
    return is_binary