class MongoDbPageRepository implements PageRepository {

    @Override
    public boolean hasPersonPage(String userId) {
        return template.count(query(where("pageType").is(PageType.PERSON_PROFILE.toString().toUpperCase()).andOperator(where("ownerId").is(userId)))) > 0;
    }

}