def _is_valid(self, entry):
    if ((entry[0] == '') or (entry[1] is None)):
        return False
    return True
def _is_valid(self, entry):
    if ((entry[0] == ) or (entry[1] is None)):
        return False
    return True