I would merge the 2 `if` conditions into one.