check if mutation should occur