Moralis isMetaMaskInstalled is not a function

Hello, I am using Moralis.isMetaMaskInstalled() to check if Metamask was installed or not. It was working perfectly, but now something has gone wrong. It says “Moralis.isMetaMaskInstalled is not a function”

async function checkMetaMask() {
    const isMetaMaskInstalled= await Moralis.isMetaMaskInstalled();
        alert('Please install Metamask');

it should work now with latest version of the SDK