Detect when CharacterController is not colliding? (SOLVED)

Like as per usual I had an epiphany and solved the problem I was having… bollocks. (I mean its a good thing I solved it but why is it always after I post a question?!)

If anybody wants a detailed explanation of what my problem was and how I solved it just ask and I’ll post it.

bool colliding = false;

void update()
{
    if(!colliding)
    {
        //do your thing
    }
}

 void OnCollisionEnter(Collision collision) 
{
    colliding = true;
}

 void OnCollisionExit(Collision collision) 
{
    colliding = false;
}