Use `hasAttribute()` instead to avoid code duplication

change `isset($this->_attributes[$name]) || isset($this->getTableSchema()->columns[$name])` on `__set()` and `setAttribute()` to `hasAttribute()`