Also the code style seems inconsistent with the rest of the method. It should be a single line `if`.