I am not using this function.The code that breaks is part of the advanced custom fields plugin. I understand what goes wrong but i do not know how to fix it in my site if it the error is in the plugin. To be honest, I don’t see the added value of the function acf_is_empty.