From my point of view it is better to write some early return in order to avoid bigger indentations