Checking if the type is null before to add the type associated to the lexeme in the symbol table