Wrap whole class in an if statement instead of just returning void. Fixes #49

Since it's causing problems on some setups it makes sense to just wrap the whole class in an if statement and let the code continue to execute since nothing else in the file will be executed.