public static function contains(array $haystack, $needle, bool $strict = true)
    {
        foreach ($haystack as $value) {
            if ((!$strict && $needle == $value) || $needle === $value) {
                return true;
            }

            if (is_array($value) && static::contains($needle, $value, $strict)) {
                return true;
            }
        }

        return false;
    }