How to check if a tuple is empty in Python?