early return pattern