Minor if refactor.