In-line ifs are more concise and pythonic.