src/Helpers/Request/ArrayHelper.php
public function isSubset($needles, $haystack, $strict = false)
    {
        return $this->proxy(__FUNCTION__, [$needles, $haystack, $strict]);
    }
public function isSubset($needles, $haystack, $strict = false)
    {
        return $this->proxy(__FUNCTION__, [$needles, $haystack, $strict]);
    }
Checks whether an array or [[\Traversable]] is a subset of another array or [[\Traversable]].

This method will return `true`, if all elements of `$needles` are contained in
`$haystack`. If at least one element is missing, `false` will be returned.
@param array|\Traversable $needles The values that must **all** be in `$haystack`.
@param array|\Traversable $haystack The set of value to search.
@param bool $strict Whether to enable strict (`===`) comparison.
@throws InvalidArgumentException if `$haystack` or `$needles` is neither traversable nor an array.
@return bool `true` if `$needles` is a subset of `$haystack`, `false` otherwise.
@see \Reaction\Helpers\ArrayHelper::isSubset()