I'm really confused by what this line does. Could you rewrite it using `if` etc.?