can the labels variable be put into an if?