An undefined type is represented by an empty Type and not by null.
Check for null for undefined type not needed.