Improve many implementation by using stdlib maybe function