Made if statement more verbose

Realised just after committing this that the if statement was not quite verbose enough, and would sometimes cause links not to receive their prefix. How embarrassing.