Refactor _visible method