Ok, let me describe it a bit. `SNICallback` is a default version which is using `server._contexts` for matching server names, this conditions checks if there's a custom callback or if there're any contexts to match against. In both cases, `onsniselect` should be set to either call custom callback (even if there're no contexts), or default one if there're contexts to match.