Perhaps surround this with a try...catch and `fail()` instead?