Fixed if statement logic.

I made an unbelievably stupid error when fixing the redundant setupTable call.

Sorry about that.