Invert your ifs!
Refactoring when having to deal with multiple exception cases
Tags: refactoring, devtips