it is just a cycle, checking if the element exists. should not be a big deal, or a reusable code (that's why I don't think it belongs to utils)