Fixed isMobileUserAgent method execution