Then why not test for the presence of a group code 6?
These could be different things. Do you want the hidden and center, the bylayer, or both? If it bylayer you want see above. If it the others, test for the line types in the group code.
Click to see the full signature.