nit: flip this `if` and save yourself some indentation?