manage in function 
hra_core.misc.is_empty(_value)
situation when a _value parameter has __getattr__ method then
hasattr(_value, '__len__')
returns True, but use of len function raises an exception