public function inArray($values, $args, $do, $strict = false)
    {
        if (!is_callable($do)) {
            throw new \InvalidArgumentException('Third argument must be a callable');
        }

        foreach ($values as $single) {
            $result = $do($single, $args);
            if ($strict && !$result) {
                break;
            }
        }

        return $result;
    }