be sure model is accessible before dereferencing