There are a lot of other functions and tools that could do the same, but most of them raise the bad counter by 2 (one for a bind and the other for the try itself).

I wanted a easy to use function that can do the same with just ONE (1) shot.

Here is a little Gist for that:

You need JavaScript enable to see the Gist. If you see nothing, click here.