def handle_result(result):
    """ Handles the result string and returns a boolean if possible"""
    if result == 'notapplicable':
        return -1
    if result == 'pass':
        return 1
    return 0
