def METHOD_NAME(lines):
    """Check if the file has the license header."""
    copyright = False
    license = False
    for line in lines:
        if line.find("HeteroCL authors.") != -1:
            copyright = True
        elif line.find("SPDX-License-Identifier") != -1:
            license = True
        if copyright and license:
            return True
    return False