for readability seems like this could go at the beginning of the function and be surrounded by a bit more whitespace