if (is_running('foo')){ # because "1" means "no" set_running('foo'); }