public function valueExists($value, bool $strict = true) : bool
    {
        foreach($this->_data as $data) {
            $ret = ($strict) ? ($data === $value)
                             : ($data == $value);

            if($ret) {
                return true;
            }
        }

        return false;
    }
public function valueExists($value, bool $strict = true) : bool
    {
        foreach($this->_data as $data) {
            $ret = ($strict) ? ($data === $value)
                             : ($data == $value);

            if($ret) {
                return true;
            }
        }

        return false;
    }
public function valueExists ( $ value , bool $ strict = true ) : bool { foreach ( $ this -> _data as $ data ) { $ ret = ( $ strict ) ? ( $ data === $ value ) : ( $ data == $ value ) ; if ( $ ret ) { return true ; } } return false ; }
Checks that a value exists in the array.

@param mixed $value  Index value.
@param bool  $strict Flag indicating that the value must be exactly the same or not (default = `true`).

@return bool `true` if `$value` exists as a value in the array, `false` if not.
Checks that a value exists in the array .