Condition for visible attributes

When attributes are present, but there are not visible (for example variations) then table is still visible. This will fix that issue