Check if is Internet Explorer

Checking if is Internet Explorer and run some function:

    var ua = window.navigator.userAgent;
    var msie = ua.indexOf("MSIE ");

    var logo_img = $('.logoslider .single-clients img');

    if (navigator.appName == 'Microsoft Internet Explorer' ||  !!(navigator.userAgent.match(/Trident/) || navigator.userAgent.match(/rv:11/)) || (typeof $.browser !== "undefined" && $.browser.msie == 1)) {

        set_height_ie();

        $(window).resize(function() {
            set_height_ie();
        });

        function set_height_ie() {
            logo_img_sirina = logo_img.width();
            logo_img.height(logo_img_sirina);
        }
    }