private boolean vldExist(Integer id, Integer siteId, WebErrors errors) { if (errors.ifNull(id, "id")) { return true; } CmsComment entity = manager.findById(id); if (errors.ifNotExist(entity, CmsComment.class, id)) { return true; } if (!entity.getSite().getId().equals(siteId)) { errors.notInSite(CmsComment.class, id); return true; } return false; }