public static function contains($list, $value, $strict = false)
    {
        return static::some($list, function ($item) use ($value, $strict) {
            return $strict ? $item === $value : $item == $value;
        });
    }
public static function contains($list, $value, $strict = false)
    {
        return static::some($list, function ($item) use ($value, $strict) {
            return $strict ? $item === $value : $item == $value;
        });
    }
public static function contains ( $ list , $ value , $ strict = false ) { return static :: some ( $ list , function ( $ item ) use ( $ value , $ strict ) { return $ strict ? $ item === $ value : $ item == $ value ; } ) ; }
Returns true if the value is present in the list.

@category Collection Functions

@param traversable $list the list of items
@param mixed $value the value to look for
@param boolean $strict type of value is also used in coparision

@return array
Returns true if the value is present in the list .