app: simplify visibility check