public static function stringStartsWith($str, $prefix)
    {
        if(is_array($prefix)){
            foreach($prefix as $p){
                if($p === "" || strpos($str, $p) === 0){
                    return true;
                };
            }
            return false;
        }
        return $prefix === "" || strpos($str, $prefix) === 0;
    }