Check declaration or not

`rule.declarations` can contain a comment.