Null guard model reference is detached hook