I know I'm not the best adherent to Pythonic code, but is that 4-line code block really the Pythonic way to set a Boolean from a logical check?