check branch contains user instead