public static function startsWith(string $haystack, string $needle, bool $caseSensitive = true)
    {
        if ($caseSensitive) {
            return $needle === '' || strpos($haystack, $needle) === 0;
        }

        return $needle === '' || stripos($haystack, $needle) === 0;
    }