Fix: Using `throw` instead of `return`