Update to capture console.warn
Update to check arguments.length