Bugfix: Update the function for checking if we have an empty value or array.