Yes, this function is useful. My point is that the style of your method is different with others, the return-value. We are not using True or False in return-value as a flag of success or failure.