Don't compare a logical value to a boolean. Revise and resubmit.
Speaking of readability, you weren't consistent in how you evaluate the truthiness of each of the two variables. Please fix and resubmit.I was making it easier to read. How many people here would know what * means instead of AND?
Maybe before posting u should revise, think a little and then resubmit @thenayancat