Better checking of model table name