Check if branch exist