If last model check undefined