Improve exists for repo / type.