I have this function

```
  bool nameExists(players, player) {
    players.forEach((f) {
      if (f.data['name'].toLowerCase() == player.toLowerCase()) {
        return true;
      }
    });

    return false;
  }

```

It always return false, even if the condition is satisfied.

Any ideas?