This seems like the same logic again. Is it worth a utility method or not so much?