def is_single_bool(val):
return type(val) == type(True)<EOL>
Checks whether a variable is a boolean.

Parameters
----------
val
    The variable to check.

Returns
-------
bool
    True if the variable is a boolean. Otherwise False.