fix typo
use 'hasOwnProperty' to check if loaded
remove unnecessary lodash