A corollary of my previous EAFP comment is that you wouldn't need as many tests to make sure your configuration is correct.