This should be encapsulated in `chef_[is]_running`

```
if ! chef_running; then
  return 1
fi
if chef_warning_continue; thhen
  return 1
fi
return 0
```