I would personally use early returns instead of a variable.