use more conscise tertiary syntax
fix formatting to better indicate line numbers
remove CWClassExists
remove unit test for CWClassExists