Minor Tweeks

Return type of boolean for the isMobile function instead of a string. I was also getting a notice with the newer versions of IE, so I added checks for the match count and instantiated the variables to prevent this.