API function for CC checks

Working on an addon. I am looking for a function which can check if my character is currently in cc.

For example if i am feared it would return true.

I am sure i had used a function in the past but cant find it. Currently its enough to check for my own character, not for other units.

Edit: If i remember correctly this function didnt even check for cc but simply checked if i am able to control my character currently. So it returned that i can not control my character if i was on a fly path for example. But it would do regardless, it worked for cc.

Edit: C_LossOfControl.GetActiveLossOfControlDataCountByUnit(unitToken)

/closed