Fix graph to hide when no data is sent

Since an array is always sent now (empty if no data) the check didn't
work.