Simplified type check