Remove a duplicate check

This seems to be caused by a merge gone wrong: 77031582eec32187dbb4d1cdf753f9f4c2ded5a4