Protection from external 'undefined'