```php
if ($obj instanceof Post) {
    return true;
}
```
and add a ``use`` statement for this class.