import zipfile


def unzip(zfile, outdir):
    """Unpack a zip file into the given output directory outdir
    Return True if it worked, False otherwise"""

    try:
        zf2 = zipfile.ZipFile(zfile)
        zf2.extractall(outdir)
        return True
    except zipfile.BadZipfile:
        return False
    except NotImplementedError:
        return False