I know it's debatable but consider early return here. It will save a variable and two lines of code :)