Fix possible warning from if check.