tidy up the isImmutable validation extension