if first element of args is an instance of SafeData, and 'is_safe' attribute of dec._decorated_function object is true,
if ( isinstance ( args [ 0 ] , SafeData ) and getattr ( _dec . _decorated_function , 'is_safe' , False ) ) :