Instead of count:

```
TargetType.values().any { it.toString() == targetType }
```