public function first()
    {
        $this->executeBeforeCallback();

        return count($this->items) > 0 ? reset($this->items) : null;
    }
public function first()
    {
        $this->executeBeforeCallback();

        return count($this->items) > 0 ? reset($this->items) : null;
    }
public function first ( ) { $ this -> executeBeforeCallback ( ) ; return count ( $ this -> items ) > 0 ? reset ( $ this -> items ) : null ; }
Returns the first item from the collection.

@return mixed|null
Returns the first item from the collection .