Again, this block is bad indented (from `} else {` onwards)