Check for model state before rendering.