Negated if statement for proper operation