Check to make sure object has an id