Use triple predicate functions instead of checking values directly. NFC.