I am trying to generate a function which tells me if a word is an isogram (contains duplicate values). However, this code always returns a generator object.

```
def is_isogram(string):
    return (True if (string.lower().count(letter) == 1) else False for letter in string.lower())

```

I know how to solve the problem, I was just wondering what is wrong with my code.