Wait, that should check for nulls.
...and that takes care of the coming into range.