check object exists