check for value AND check for a match