what about just

```ruby
config[:server].start_with?('https://', 'http://')
```