could you pls add a comment, explaining this condition? or maybe even better to pack it into a little nicely-named function in a nameless namespace