can we maybe only enter this logic if the if the list is not empty?

```JAVA
if (!entries.isEmpty()) {
 // do the magic
}
return 1.0f;
```