Properly enclose 'model' in quotes when testing p.[attr]