May `$disallowedSchemeResult` be anything other than `object|null`? Otherwise, you can skip the comparison