https://github.com/bitcoin/bitcoin/blob/9ad6f14175c19b5d47267c3dd5840c14bad43c83/src/validation.cpp#L3711

If i'm following right the flow of the code, when we hit this lane `pindex` should be always equal to nullptr thus this check may be omitted
if (nSigOpsCost > MAX_STANDARD_TX_SIGOPS_COST)
        return state.Invalid(TxValidationResult::TX_NOT_STANDARD, "bad-txns-too-many-sigops",
                strprintf("%d", nSigOpsCost));
    
    
    if (!bypass_limits && !CheckFeeRate(nSize, nModifiedFees, state)) return false;
    const CTxMemPool::setEntries setIterConflicting = m_pool.GetIterSet(setConflicts);
    
    if (setConflicts.size() == 1) {