Simplify has_*_perm functions and improve speed
Simplify has_*_perm functions and improve speed

zeeman/cyder,zeeman/cyder,murrown/cyder,drkitty/cyder,murrown/cyder,drkitty/cyder,zeeman/cyder,OSU-Net/cyder,akeym/cyder,murrown/cyder,OSU-Net/cyder,OSU-Net/cyder,drkitty/cyder,akeym/cyder,zeeman/cyder,akeym/cyder,akeym/cyder,murrown/cyder,drkitty/cyder,OSU-Net/cyder