Safety check on permute method