It is needed, but I think both lines should be merged somehow. The code duplication is bugging me.