check if the stats is valid