public function startsWith($value): bool
    {
        if ($this->isValidType($value) === false) {
            throw new MWrongTypeException("\$value", $this->getType(), $value);
        }

        if ($this->count() <= 0) {
            return false;
        }

        $lastValue = $this->list[0];

        return ($lastValue == $value);
    }
public function startsWith($value): bool
    {
        if ($this->isValidType($value) === false) {
            throw new MWrongTypeException("\$value", $this->getType(), $value);
        }

        if ($this->count() <= 0) {
            return false;
        }

        $lastValue = $this->list[0];

        return ($lastValue == $value);
    }
public function startsWith ( $ value ) : bool { if ( $ this -> isValidType ( $ value ) === false ) { throw new MWrongTypeException ( "\$value" , $ this -> getType ( ) , $ value ) ; } if ( $ this -> count ( ) <= 0 ) { return false ; } $ lastValue = $ this -> list [ 0 ] ; return ( $ lastValue == $ value ) ; }
Returns true if this list is not empty and its first item is equal
to value; otherwise returns false.

@param mixed $value
@return bool
Returns true if this list is not empty and its first item is equal to value ; otherwise returns false .