Would it be better to break rather than returning in the middle of the code?