So, if given is that mw is defined.. then if ( mw.libs ) as far as I know should not fail no matter what.