Don't check on a list length because if the list is long, it iterates over all elements. Maybe `result == []` ?