Remove if statement comparison with empty string and replace with not keyword instead.