Tighten up an if statement