This patch is a small refactor before a follow-up change that will make performing these checks conditional to remove of the fast path.
<rdar://problem/105904269>
Pull request: https://github.com/WebKit/WebKit/pull/10669
Committed 260829@main (bfd300fb86cf): <https://commits.webkit.org/260829@main> Reviewed commits have been landed. Closing PR #10669 and removing active labels.