If the given handle type is valid, return true.
true
If not, set error and return false.
error
false
A handle type, valid or not, to be checked
true if the handle type is valid.