fixed the IsNullableOf method