We could check for null at the beginning and be done with it if it's null, rather than checking on every iteration of the loop.