def unArrayizeValue(value):
 if isListLike(value):
  value = (value[0] if (len(value) > 0) else None)
 return value

def unArrayizeValue ( value ) : if isListLike ( value ) : value = ( value [ 0 ] if ( len ( value ) > 0 ) else None ) return value
makes a value out of iterable if it is a list or tuple itself .