Ah, maybe `!send(name).nil? && (send(name) == value)` would be better? Or, to name some things:

``` Ruby
def matches_attr?(name, other_value)
  value = send(name)
  !value.nil? && value == other_value
end
```