Check if target is a th element