simplify tabbar check