Add helper function

Hey! Can a short helper, like this, be userful in every tool?