stm32f4 Timer

Hello every one! How can i check if the timer is already running.. which flag to use I am trying thisif (TIM2 -> CR1 == TIM_CR1_CEN){// turn led on blue} else{// turn led red on}but it does not work, please help me