Why using hasOwnProperty and not just something like if (mw & mw.libs && mw.libs.ve )?