Clean up conditional.

What was a "false || hasAttribute(...)" was inverted to "true || !hasAttribute(...)".