How to check if GLM will be able to run OLS beforehand?

PR here.