Use ActiveSupport's `empty?` method to validate the empty array. 

```ruby
expect(page.driver.confirm_messages).to_not be_empty
```