[model] check if its nil.