[fix] Wrong undefined type check.