Don't check for https by checking if HTTPS is empty and replaced return_to ternary statement

Fixes #15