@ZaidM this should be `if (currentTokens.isEmpty() && nextTokens.isEmpty())`.
Before you next run this, can you change that locally please? I'll change it in this PR later - and I'll also add more logging!