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
    try:
        map(float, data[2:])
    except:
        return False
    return True
