rangeCheck
Checks if the given @value is within the permitted range for @key.
It is a programmer error if @value is not of the correct type — you must check for this first.
Return
true if @value is valid for @key
Since
2.40
Parameters
value
the value to check