Using a more elevated pattern to eliminate the use of vars and null.