once you find what you want, you should break out of the loop.

```
if (...) {
   ...
   canUse = true;
   break;
}
```