only iterate tokens when they exist