Wouldn't `if 'bars' in value` be better?