I took an implementation of a function that getting this array: [key1, key2, key3]

My function need to check if all the keys are exist in file.

each line in file contain just one of the keys [not all of them]

I printed my function in order to check, and it seems that it's trying to search all the keys in each line [which of course always be FALSE]

please help me fix my function, many thanks:

```
def is_all_keys_in_file():
    with open(path_to_file, "r") as file:
        key1 = '0\n'
        key2 = 'name'
        key3 = 'RecipeEndSucceeded'
        keys = [key1, key2, key3]
        counter = 0

        for line in file:
            for key in keys:
                if key in line:
                    counter += 1

    if counter == len(keys):
        return True
    else:
        return False

```