as @stof said, you should use an early return here