code: function isSecure(url) {
      if (typeof url !== 'string') {
        return false;
      }
      var parts = url.split('://');
      if (parts[0] === 'https') {
        return true;
      }
      return false;
    }
docs: given a URL ensures it's HTTPS. returns false for null string or non-HTTPS URL.