If a variable is a boolean, don't compare it with the literal types.  Just use it, a la ```if isatom:```