check if current branch is already set