better option is to check if it is HTTPS class as it doesn't check string
```
irb(main):005:0> URI("https://google.com").is_a? URI::HTTPS
=> true
irb(main):008:0> URI("http://google.com").is_a? URI::HTTPS
=> false
```