Dinodex

with help from @jvanderz22 and @jillalynch
More verbosely, separate returns are harder to understand than a single compound statement, if it's simple enough.