There's no point in having a try block when the condition is false, so invert the if & try to avoid handling exceptions for nothing