please don't use `return` in the middle of a function, use `else` instead.