You can simplify this with ```contentDAO.findOneByID(id).isDefined```