getAttribute('variations')->isNotEmpty(); } public function hasAnyVariants(): bool { return $this->getAttribute('variants')->isNotEmpty(); } public function hasAnyOption(): bool { return $this->getAttribute('options')->isNotEmpty(); } public function hasAnyAttribute(): bool { return $this->getAttribute('attributes')->isNotEmpty(); } }