I tend to go for the first example, unless there is some really compelling reason why someone might set the library to "true" or something similar. Yes, if your code is running in someone else's environment (ie, you're building a public Javascript framework like JQuery) you may want to be as safe as possible with the type-checking, to ensure someone isn't misusing the library. But in my view, perfect type safety in Javascript is not quite so important as to make all your code extremely verbose, and occasionally difficult to read.
I also liked an answer from the linked question; you can use
if ('myLibrary' in window)
I think that one's just preference. To clarify, that one will evaluate true even if window.myLibrary is 'false', so you'd basically be checking whether it was defined at all.