Add conditional to prevent R from throwing error with unimplemented glm aic