As suggested by @tonykoval, it seems to be working with new attribute var is_empty here is the attached screenshots of the flow.
is_empty