public static function startsWith($haystack, $needles)
    {
        foreach ((array)$needles as $needle) {
            if ($needle == '') {
                continue;
            }

            $substring = mb_substr($haystack, 0, mb_strlen($needle));

            if (self::doesStringMatchNeedle($substring, $needle)) {
                return true;
            }
        }

        return false;
    }