Blocks inlined into CIDs can technically contain CIDs themselves. I'm guessing this check was trying to skip "actor" CIDs (inline cids with raw blocks).