make a check when deleting remote branch