don't trigger display hook on empty arrays

I know it's weird, but things like puts return empty arrays