Correct an attribute check. is not is cleaner and maybe more likely to work.