Early return in deeply-nested 'if'