Please write this function in utils (I think there is one already!)