Use early return here to reduce christmas treeing