If you want to check if any element of an iterable is True, use any. In the code above, I use any to find if any element in the text is in uppercase.
Link to the source code.