check for type undefines