Isn't this check necessary anymore?

Also I would expect the opposite condition.