You can modify it like this: `isinstance(perm, (list, tuple))` but I'd suggest modifying `check_perms` like this:

    if not isinstance(perm, (list, tuple)):
       perm = (perm,)

then change the `has_perm` call to `has_perms`

Then you won't need to duplicate so much logic in `check_many_perms`