conver swapMutatorCheck to an attribute