Can you add comments explaining this condition? It's not obvious what is being checked here.