Made the enum test a bit more explicit.