Implement isEmptyValue function

The ez_is_field_empty twig function works correct with this function
I changed it :)