Checking for `--check` or `--dry-run` inside callback module

Hi I am creating a custom callback module and I want it to have different behavior when in check or dry-run mode. However I have not found a way to detect this, is there a way for me to tell as a callback plugin if we are running in check mode?
The goal is to only run this module when dry-run or check is enabled.

For development question you might have better luck in the development mailing list https://groups.google.com/forum/#!forum/ansible-devel