no longer need to test for nil, model_as_resource now takes care of it