It can be in one line:
```ruby
def published?
    not (self.data.has_key?('published') && self.data['published'] == false)
end
```