Please keep the early return here instead of nesting the whole logic in the if. It is a matter of coding standards