Only use the branch if we are currently on a branch