Make code more readable with early return.