Check for branch function before deleting.