Would it be possible to not necessitate this `if` check upon every invocation?  Small optimization but should be a simple one.