If the `$matchResult` is always `object|null`, you can skip the comparison