Here's the shorter BOUNDS function. And it's still worth keeping MIN and MAX in mind for your bounds-checking.