maybe better to inline the condition
```
$nextT = isset($tokens[$n+1][0]) ? $tokens[$n+1][0] : NULL;
```
or maybe even better is to avoid the condition altogether by putting `$tokens[$count][0] = NULL` before the cycle.