<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def binary_check(classes):
 """ Check if the problem is a binary classification. :param classes: all classes name :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