Adding small helper method to util lib