public function containsStrict($key, $value = null)
    {
        if (func_num_args() == 2) {

            return $this->contains(function ($item) use ($key, $value) {

                return ArrayHelper::dataGet($item, $key) === $value;
            });
        }

        if ($this->useAsCallable($key)) {

            return !is_null($this->first($key));
        }

        return in_array($key, $this->items, true);
    }
public function containsStrict($key, $value = null)
    {
        if (func_num_args() == 2) {

            return $this->contains(function ($item) use ($key, $value) {

                return ArrayHelper::dataGet($item, $key) === $value;
            });
        }

        if ($this->useAsCallable($key)) {

            return !is_null($this->first($key));
        }

        return in_array($key, $this->items, true);
    }
public function containsStrict ( $ key , $ value = null ) { if ( func_num_args ( ) == 2 ) { return $ this -> contains ( function ( $ item ) use ( $ key , $ value ) { return ArrayHelper :: dataGet ( $ item , $ key ) === $ value ; } ) ; } if ( $ this -> useAsCallable ( $ key ) ) { return ! is_null ( $ this -> first ( $ key ) ) ; } return in_array ( $ key , $ this -> items , true ) ; }
Determine if an item exists in the collection using strict comparison.

@param  mixed $key
@param  mixed $value

@return bool
Determine if an item exists in the collection using strict comparison .