What's the logic behind this conditional behavior?