public function scopeParent(Builder $query, bool $parent_exists, ?string $parent_category = null): Builder 	{ 		if (!$parent_exists) { 			return $query; 		}  		return $query->where('category_id', $parent_category); 	}