<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_valid(line0, line1):
 """ Check if a file is valid Glove format. Args: line0 (bytes):
 First line of the file line1 (bytes):
 Second line of the file Returns: boo: ``True`` if it is valid. ``False`` if it is invalid. """

    data = line0.strip().split(b' ')
    if len(data) <= 2:
        return False
    # check if data[2:] is float values
    try:
        map(float, data[2:])
    except:
        return False
    return True