Can I use conditional logic to determine how many rows in a matrix will be visible?