private function equals(array $set1, array $set2) : bool { return array_diff($set1, $set2) == array_diff($set2, $set1); }