Skip loop if state is empty