check for branch existance