protected function convertToArray($items) { if ($items instanceof self) { return $items->all(); } return (array) $items; }