Try and get is_secure() working correctly.