refactor: single line if statements