Depending on what you’re doing in the iRule, the Local Traffic Policies are ridiculously customizable, so you may be able to achieve the desired iRule logic in an LTM policy without an iRule.
SOL14381 has the following example as a replacement for HTTP::class select:
when HTTP_REQUEST {
if {[llength [POLICY::names matched]] > 0} {
…
}
}