refactor to reflect logic on line 62

the conditional block can be refactored out in a single line. See line 61 for illustration.