Fix logic for "present" vs "valid"