Is this check necessary? Seems like the equality check above should be sufficient.