public function hasPivotAttributes($name) { return array_key_exists($name, $this->relationshipPivots ?: []); }