You're assuming that at least one type will match (which it does... File.match_file_type always returns True).
But it does look ugly... :(

You can ignore it though... This is how clipboardadmin does it as well...