Verify Address of a Contract in Solidity

function checkIsItContract(address contractAddress)public view returns(bool check){
        uint codeSize;
        
        assembly{
            codeSize := extcodesize(contractAddress)
        }
        
        check = codeSize > 0;
    }

By Shabair

Frontend | Blockchain | Smart Contract Developer