public function first() { if (count($this->all()) === 0) { throw new EmptyCollectionException('Collection is empty'); } return $this->all()->first(); }