Should not return False as that is not an S3ResourceQuery, yet methods like query() or joins() or split() expect it to be.

If you're using record ids, you can do:
if len(filename) < 1: return l == None