A sufficient condition for invexity