Shouldn't this be checking the `content` attribute as well?