renamed to isPermutationOf