add check model for null attributes