The is
operator will always return false
if the object is null, so you do not need to check for null before testing the type.
From the documentation:
An is expression evaluates to true if the provided expression is non-null, and the provided object can be cast to the provided type without causing an exception to be thrown.