use inverted condition to return earlier.