Can we change the "and" and "not" to && and ! to keep it consistent with the rest of the code base?