Changed unnecessary either to if