you an cut down on nesting by using an early return?