You want to check “if $result instanceof RedirectResponse”
E.g. https://github.com/tattersoftware/codeig...r.php#L132
CodeIgniter\HTTP\RedirectResponse is the full namespaced version
E.g. https://github.com/tattersoftware/codeig...r.php#L132
CodeIgniter\HTTP\RedirectResponse is the full namespaced version