Why there is need for call the memset method? It will set validDefinition to false below.