Can you also check if console.warn exists?