src/Traits/Collection/MainTrait.php
public function getByIndex($index)
    {
        if (isset($this->elements[$index])) {
            return $this->elements[$index];
        }

        return null;
    }
public function getByIndex($index)
    {
        if (isset($this->elements[$index])) {
            return $this->elements[$index];
        }

        return null;
    }
public function getByIndex ( $ index ) { if ( isset ( $ this -> elements [ $ index ] ) ) { return $ this -> elements [ $ index ] ; } return null ; }
Returns element with given index

@param mixed $index Index / key of the element
@return null|mixed
Returns element with given index