Yes it is. This is only happening when  the result is not 0. If that happens, the inverse is returned so that the results are ordered inversely. If it is 0, then it proceeds with the next check.