correct if statement for none