Correct behaviro of enum and type checks when presented with a nil value