I like explicit and readable code over too smart code ;)

you're right about using an external function, I'll do it