has.intercept function

Check for the presence of an intercept in a formula or in a fitted model