I would get rid of this if block and merge with the above one (line 138).