checkPlatform = function (plat) {
    var detected = listPlatforms();

    if (detected.indexOf(plat) > -1) {
        return true;
    }
    return false;
}
check to see if a platform is installed


Returns

 - {boolean} true if platform is installed