Is there any better way of doing this?
if(borrar() !== false) { alert(\'tatatata bum bum bum prapra\'); } return false;
You can use something simpler:
if(!var){ console.log('var is false'); }