This line seems redundant if you're already doing an if statement check that throws an exception.