Seems as though
if not mylist[1]: return False
Doesn\'t work.
In the case of integer-indexed lists, I'd simply do
if 1 < len(mylist): ...
For dicts, you can of course do
if key in mydict: ...