`null` is never `instanceof` anything, it'll just be `false`, so you can omit the null check