* show empty state when has data returns false * adding return type * addressing pr comments Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>