`.to_s == 443` seems sorta wrong.  Also, please use  `&&`, `||`, `!` operators when working within another project; if it's isolated to your own code I don't care that much, but when working within another project please follow the coding style already there.