You could've also moved the return statement outside of the try/catch block