To me, this is an ugly way to see if there is a previous script tag that needs to end. Granted it's likely suitable and the break scenarios are rare (though possible), I personally would use something different. Not my call, though.