Usually we declare an `err` variable like this in the function signature. Then 3 of your 4 returns could just become bare `return`.