[minor] suppress identicalCondition warnings, as the variable tested has possible been changed by the findNext function.
findNext