TorBlock is still using in_array() to check if an IP is an exit node.
return in_array( IPUtils::sanitizeIP( $ip ), self::getExitNodes() );
Depending on the size of the dataset (2136 items as of late September 2022), performance wise, it would probably make some sense to use IPSet instead...