src/Value/Structure/Collection.php
public function first()
    {
        $this->getIterator()->rewind();
        return $this->getIterator()->count() ? $this->getIterator()
            ->current() : false;
    }
public function first()
    {
        $this->getIterator()->rewind();
        return $this->getIterator()->count() ? $this->getIterator()
            ->current() : false;
    }
public function first ( ) { $ this -> getIterator ( ) -> rewind ( ) ; return $ this -> getIterator ( ) -> count ( ) ? $ this -> getIterator ( ) -> current ( ) : false ; }
Gets the first item from the collection.

@return StringLiteral|false
The first item from the collection, false if the collection is empty.
Gets the first item from the collection .