Finds out whether a variable is a boolean