I think a single return would have been simpler here.
It also looks like this file uses 4 spaces for indentation instead of 3.