Could this just `return` and omit the need for the `success` variable?