["For sequences, (strings, lists, tuples), use the fact that empty sequences are false."](http://www.python.org/dev/peps/pep-0008/#programming-recommendations)

So the following is preferred `if files_to_upload:`