Check if given object is a boolean.
checkLogical(input, messageStore, null.ok = TRUE)
input
the input
messageStore
checkmate collection
null.ok
if value null is allowed