# has\_attr

### Description

`has_attr` returns true if an instance has an attribute and false otherwise.&#x20;

### Example

```
p is Person where has_attr(self, 'age')
```

This declaration will only match people that have a property age defined.
