can we make this method simpler please? like:
```java
TermPosition pos = null;
if (hasNext()) {
   pos = termPositions;
  ... 
 
}
return pos;

```