Is there any better way of doing this?
if(borrar() !== false) { alert(\'tatatata bum bum bum prapra\'); } return false;
Like this:
if(borrar()) { // Do something }
If borrar() returns true then do something (if it is not false).
borrar()