def METHOD_NAME(file_path, header):
    """Add header to file"""
    if not os.path.exists(file_path):
        print("%s does not exist" % file_path)
        return
    lines = open(file_path).readlines()
    if has_license_header(lines):
        print("%s has license header...skipped" % file_path)
        return False
    print("%s misses license header...added" % file_path)
    with open(file_path, "w") as outfile:
        # Insert the license at the second line if the first line has a special usage.
        insert_line_idx = 0
        if lines and lines[0][:2] in ["#!", "<?", "<html>", "// !$"]:
            insert_line_idx = 1
        # Write the pre-license lines.
        for idx in range(insert_line_idx):
            outfile.write(lines[idx])
        # Write the license.
        outfile.write(header + "\n\n")
        # Wright the rest of the lines.
        outfile.write("".join(lines[insert_line_idx:]))
    return True